Property 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 the Property Object
Property property = new Property(MELISSA_LICENSE_KEY);

// Set the parameters
property.AddressLine1 = "22382 Avenida Empresa";
property.City = "Rancho Santa Margarita";
property.State = "CA";

// Make the GET request
PropertyResponse responseObject = property.Get<PropertyResponse>();

// Access the response value
string recId = responseObject.RecordID;
# Initialize the Property Object
property = Property(MELISSA_LICENSE_KEY)

# Set the parameters
property.address_line_1 = "22382 Avenida Empresa"
property.city = "Rancho Santa Margarita"
property.state = "CA"

# Make the GET request
response_object = property.get(PropertyResponse)

# Access the response value
rec_id = response_object.record_id

POST Request#

Example

  • C#
  • Python
// Initialize the Property Object
Property property = new Property(MELISSA_LICENSE_KEY);

// Create a set of requests and set their parameters
property.AddRecord(new PropertyRecordRequest
{
    RecordID = "1",
    AddressLine1 = "22382 Avenida Empresa",
    City = "RSM",
    State = "CA",
    PostalCode = "92688"
});

property.AddRecord(new PropertyRecordRequest
{
    RecordID = "2",
    AddressLine1 = "1 Microsoft Way",
    City = "Redmond",
    State = "WA",
    PostalCode = "98052"
});

// Make the POST request
PropertyResponse responseObject = property.Post<PropertyResponse>();

// Access the response value
foreach (var record in responseObject.Records)
{
    Console.WriteLine("RecordID: " + record.RecordID);
}
# Initialize the Property Object
property = Property(MELISSA_LICENSE_KEY)

# Create a set of requests and set their parameters
property.add_record(PropertyRecordRequest
(
    record_id = "1",
    address_line_1 = "22382 Avenida Empresa",
    city = "RSM",
    state = "CA",
    postal_code = "92688"
))

property.add_record(PropertyRecordRequest
(
    record_id = "2",
    address_line_1 = "1 Microsoft Way",
    city = "Redmond",
    state = "WA",
    postal_code = "98052"
))

# Make the POST request
response_object = property.post(PropertyResponse)

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

For more information on the Property 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#

Language

Repository

C# .NET

melissa_favicon MelissaData/Property-Dotnet

Python3

melissa_favicon MelissaData/Property-Python3