Token Server Packages#
Packages/Samples covers the usage of Melissa Cloud APIs using popular third party tools, platforms, and programming languages. None of these are required but they can certainly get you up and running quickly.
For installation instructions and more detailed info, visit our Package Installation Guide: Installation Guide.
NuGet and Pip#
Melissa has developed an SDK for both NuGet (C# .NET) and pip (Python). Both environments follow the same patterns and naming convention so we will group them together.
GET Request#
Example
// Initialize Token Server
TokenServer tokenServer = new TokenServer(MELISSA_LICENSE_KEY);
// Set the parameters
tokenServer.Package = "GlobalExpressEntry";
tokenServer.IP = "";
tokenServer.TimeSpan = "0015";
// Make the GET request
TokenServerResponse responseObject = tokenServer.Get<TokenServerResponse>();
// Access the response value
string token = responseObject.Token;
// Initialize Token Server
token_server = new TokenServer(MELISSA_LICENSE_KEY);
// Set the parameters
token_server.package = "GlobalExpressEntry";
token_server.ip = "";
token_server.time_span = "0015";
// Make the GET request
response_object = token_server.get<TokenServerResponse>();
// Access the response value
token = response_object.token;
For more information on the Token Server Packages please click here.
To see detailed Sample Code for this package see:
OpenAPI (Swagger)#
OpenAPI is a popular specification for describing REST APIs. By providing swagger JSON documents, you can automatically generate client code and test applications.
Melissa is working on providing a swagger JSON document for our services. Please stay tuned!
Postman#
Postman is a quick and easy way to test raw HTTP requests and responses. Using our pre-made request templates, you can start testing and generating code snippets for our Cloud APIs in seconds.
Sample Code#
Language |
Repository |
|---|---|
C# .NET |
|
Python3 |