Business Coder 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

  • C#
  • Python
// Initialize Business Coder
BusinessCoder businessCoder = new BusinessCoder(MELISSA_LICENSE_KEY);

// Set the parameters
businessCoder.Company = "Melissa";
businessCoder.AddressLine1 = "22382 Avenida Empresa";
businessCoder.City = "Rancho Santa Margarita";
businessCoder.State = "CA";
businessCoder.Postal = "92688";
businessCoder.Country = "United States";

// Make the GET request
BusinessCoderResponse responseObject = businessCoder.Get<BusinessCoderResponse>();

// Access the response value
string recId = responseObject.RecordID;
# Initialize Business Coder
business_coder = BusinessCoder(MELISSA_LICENSE_KEY)

# Set the parameters
business_coder.company = "Melissa";
business_coder.address_line_1 = "22382 Avenida Empresa";
business_coder.city = "Rancho Santa Margarita";
business_coder.state = "CA";
business_coder.postal = "92688";
business_coder.country = "United States";

# Make the GET request
response_object =  business_coder.get(BusinessCoderResponse)

# Access the response value
rec_id = response_object.record_id

POST Request#

Example

  • C#
  • Python
// Initialize Business Coder
BusinessCoder businessCoder = new BusinessCoder(MELISSA_LICENSE_KEY);

// Create a set of requests and set their parameters
businessCoder.AddRecord(new BusinessCoderRecordRequest
{
    A1 = "22382 Avenida Empresa",
    City = "Rancho Santa Margarita",
    Postal = "92688",
    State = "California"
});

businessCoder.AddRecord(new BusinessCoderRecordRequest
{
    A1 = "1 Microsoft Way",
    City = "Redmond",
    Postal = "98052",
    State = "Washington"
});

// Make the POST request
BusinessCoderResponse responseObject = businessCoder.Post<BusinessCoderResponse>();

// Access the response value
foreach (var record in responseObject.Records)
{
    Console.WriteLine("RecordID: " + record.RecordID);
}
# Initialize Business Coder
business_coder = BusinessCoder(MELISSA_LICENSE_KEY)

# Create a set of requests and set their parameters
business_coder.add_record(BuinessCoderRecordRequest
(
    A1 = "22382 Avenida Empresa",
    City = "Rancho Santa Margarita",
    Postal = "92688",
    State = "California"
))

business_coder.add_record(BuinessCoderRecordRequest
(
    A1 = "1 Microsoft Way",
    City = "Redmond",
    Postal = "98052",
    State = "Washington"
))

# Make the POST request
response_object =  business_coder.post(BusinessCoderResponse)

# Access the response value
for record in response_object.records:
    print("RecordID: ", record.record_id)

For more information on the Business Coder 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.

Try it out now: Run In Postman

Sample Code#

This sample code illustrates how to construct raw HTTP requests to Melissa’s cloud API.