SmartMover 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 SmartMover Object
SmartMover smartMover = new SmartMover(MELISSA_LICENSE_KEY);
// Set the parameters
smartMover.PafId = PAF_ID;
smartMover.Company = "Melissa";
smartMover.FullName = "Raymond Melissa";
smartMover.AddressLine1 = "22382 Avenida Empresa";
smartMover.City = "Rancho Santa Margarita";
smartMover.State = "CA";
smartMover.Postal = "92688";
smartMover.Country = "US";
// Make the GET request
SmartMoverResponse responseObject = smartMover.Get<SmartMoverResponse>();
// Access the response value
string recId = responseObject.RecordID;
# Initialize the SmartMover Object
smart_mover = SmartMover(MELISSA_LICENSE_KEY)
# Set the parameters
smart_mover.paf_id = PAF_ID
smart_mover.company = "Melissa"
smart_mover.full_name =  "Raymond Melissa"
smart_mover.address_line_1 = "22382 Avenida Empresa"
smart_mover.city = "Rancho Santa Margarita"
smart_mover.state = "CA"
smart_mover.postal = "92688"
smart_mover.country = "US"
# Make the GET request
response_object = smart_mover.get(SmartMoverResponse)
# Access the response value
rec_id = response_object.record_id
POST Request#
Example
// Initialize the SmartMover Object
SmartMover smartMover = new SmartMover(MELISSA_LICENSE_KEY);
// Create a set of requests and set their parameters
smartMover.AddRecord(new SmartMoverRecordRequest
{
    RecordID = "1",
    Company = "Melissa",
    NameFull = "Ray Melissa",
    AddressLine1 = "22382 Avenida Empresa",
    City = "Rancho Santa Margarita",
    State = "CA",
    PostalCode = "92688",
    Country = "US"
});
smartMover.AddRecord(new SmartMoverRecordRequest
{
    RecordID = "2",
    Company = "Microsoft",
    NameFull = "Bill Gates",
    AddressLine1 = "1 Microsoft Way",
    City = "Redmond",
    State = "WA",
    PostalCode = "98052",
    Country = "US"
});
// Make the POST request
SmartMoverResponse responseObject = smartMover.Post<SmartMoverResponse>();
// Access the response value
foreach (var record in responseObject.Records)
{
    Console.WriteLine("RecordID: " + record.RecordID);
}
# Initialize the SmartMover Object
smart_mover = SmartMover(MELISSA_LICENSE_KEY)
# Create a set of requests and set their parameters
smart_mover.add_record(SmartMoverRecordRequest
(
    record_id = "1",
    company = "Melissa",
    name_full = "Ray Melissa",
    address_line_1 = "22382 Avenida Empresa",
    city = "Rancho Santa Margarita",
    state = "CA",
    postal_code = "92688",
    country = "US"
))
smart_mover.add_record(SmartMoverRecordRequest
(
    record_id = "2",
    company = "Microsoft",
    name_full = "Bill Gates",
    address_line_1 = "1 Microsoft Way",
    city = "Redmond",
    state = "WA",
    postal_code = "98052",
    country = "US"
))
# Make the POST request
response_object = smart_mover.post(SmartMoverResponse)
# Access the response value
for record in response_object.records:
    print("RecordID: ", record.record_id)
For more information on the SmartMover 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  |