Skip to content

Newsman/newsman-api-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Newsman .NET API Client - version 1.2

This is the Newsman App .NET API client for API version 1.2.

Newsman - Smart Email Service Provider

Newsman is a Smart Email Service Provider. We send newsletters on behalf of our customers.

About Newsman API - version 1.2

Our current API version is 1.2. API documentation can be found here:

Our API requires an API KEY which you can generate in your Account and your Newsman user id. The API exposes XML RPC and REST interfaces.

REST

The REST call type is done over HTTP POST.

Example code:

            RESTClient client = new RESTClient("your_user_id", "your_api_key");

            var _params = new NameValueCollection();
            _params["list_id"] = "list_id";
            _params["email"] = "[email protected]";
            _params["firstname"] = "firstname";
            _params["lastname"] = "lastname";
            _params["ip"] = "::1";
            _params["props[source]"] = "source";
            _params["props[city]"] = "city";

            var response = client.CallMethod("subscriber", "saveSubscribe", _params);

            Response.Write(response);

String Encoding

Please make sure all strings are UTF-8 encoded.

Releases

No releases published

Packages

No packages published

Languages