Global IP 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 the Global IP Object
GlobalIP globalIP = new GlobalIP(MELISSA_LICENSE_KEY);
// Set the parameters
globalIP.IP = "12.203.219.6";
// Make the GET request
GlobalIPResponse responseObject = globalIP.Get<GlobalIPResponse>();
// Access the response value
string recId = responseObject.RecordID;
# Initialize the Global IP Object
global_ip = GlobalIP(MELISSA_LICENSE_KEY)
# Set the parameters
global_ip.ip = "12.203.219.6"
# Make the GET request
response_object = global_ip.get(GlobalIPResponse)
# Access the response value
rec_id = response_object.record_id
POST Request#
Example
// Initialize the Global IP Object
GlobalIP globalIP = new GlobalIP(MELISSA_LICENSE_KEY);
// Create a set of requests and set their parameters
globalIP.AddRecord(new GlobalIPRecordRequest
{
    RecordID = "1",
    IPAddress = "12.203.219.6"
});
globalIP.AddRecord(new GlobalIPRecordRequest
{
    RecordID = "2",
    IPAddress = "139.101.81.42"
});
// Make the POST request
GlobalIPResponse responseObject = globalIP.Post<GlobalIPResponse>();
// Access the response value
foreach (var record in responseObject.Records)
{
    Console.WriteLine("RecordID: " + record.RecordID);
}
# Initialize the Global IP Object
global_ip = GlobalIP(MELISSA_LICENSE_KEY)
# Create a set of requests and set their parameters
global_ip.add_record(GlobalIPRecordRequest
(
    record_id = "1",
    ip_address = "12.203.219.6"
))
global_ip.add_record(GlobalIPRecordRequest
(
    record_id = "2",
    ip_address = "139.101.81.42"
))
# Make the POST request
response_object = global_ip.post(GlobalIPResponse)
# Access the response value
for record in response_object.records:
    print("RecordID: ", record.record_id)
For more information on the Global IP 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  |