Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
852
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Program.SendSimpleMessage(); Console.WriteLine("Hello, world!"); } public static RestResponse SendSimpleMessage() { Console.WriteLine("Hello, world 1 !"); RestClient client = new RestClient(); Console.WriteLine("Hello, world 1 2 !"); RestClient client = new RestClient(); client.BaseUrl = "https://api.mailgun.net/v2"; client.Authenticator = new HttpBasicAuthenticator("api", "key-3ax6xnjp29jd6fds4gc373sgvjxteol0"); RestRequest request = new RestRequest(); request.AddParameter("domain", "samples.mailgun.org", ParameterType.UrlSegment); request.Resource = "{domain}/messages"; request.AddParameter("from", "Excited User <me@samples.mailgun.org>"); request.AddParameter("to", "sergeyo@profista.com"); request.AddParameter("to", "serobnic@mail.ru"); request.AddParameter("subject", "Hello"); request.AddParameter("text", "Testing some Mailgun awesomness!"); request.Method = Method.POST; return client.Execute(request); } } }
Show compiler warnings
[
+
]
Show input
Compilation time: 0,11 s
edit mode
|
history
|
discussion