Personator Identity 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 Personator Identity
PersonatorIdentity personatorIdentity = new PersonatorIdentity(MELISSA_LICENSE_KEY);

// Set the parameters
personatorIdentity.Action = "check";
personatorIdentity.FullName = "Raymond Melissa";
personatorIdentity.AddressLine1 = "22382 Avenida Empresa";
personatorIdentity.Locality = "Rancho Santa Margarita";
personatorIdentity.AdministrativeArea = "Ca";
personatorIdentity.Postal = "92688";
personatorIdentity.Country = "United States";

// Make the GET request
PersonatorIdentityResponse responseObject = personatorIdentity.Get<PersonatorIdentityResponse>();

// Access the response value
string resultCode = responseObject.ResultCode;
# Initialize Personator Identity
personator_identity = PersonatorIdentity(MELISSA_LICENSE_KEY)

# Set the parameters
personator_identity.action = "check"
personator_identity.full_name = "Raymond Melissa"
personator_identity.address_line1 = "22382 Avenida Empresa"
personator_identity.locality = "Rancho Santa Margarita"
personator_identity.administrative_area = "Ca"
personator_identity.postal = "92688"
personator_identity.country = "United States"

# Make the GET request
response_object = personator_identity.get(PersonatorIdentityResponse)

# Access the response value
result_code = response_object.result_code

POST Request#

Example

  • C#
  • Python
// Initialize Personator Identity
PersonatorIdentity personatorIdentity = new PersonatorIdentity(MELISSA_LICENSE_KEY);

// Create a set of requests and set their parameters
personatorIdentity.AddRecord(new PersonatorIdentityRecordRequest
{
    Actions = "check",
    FullName = "Raymond Melissa",
    AddressLine1 = "22382 Avenida Empresa",
    Locality = "Rancho Santa Margarita",
    AdministrativeArea = "CA",
    PostalCode = "92688",
    Country = "United States"
});

// Make the POST request
PersonatorIdentityResponse responseObject = personatorIdentity.Post<PersonatorIdentityResponse>();

// Access the response value
string resultCode = responseObject.ResultCode;
# Initialize Personator Identity
personator_identity = PersonatorIdentity(MELISSA_LICENSE_KEY)

# Create a set of requests and set their parameters
personator_identity.add_record(PersonatorIdentityRecordRequest
(
    actions = "check",
    full_name = "Raymond Melissa",
    address_line1 = "22382 Avenida Empresa",
    locality = "Rancho Santa Margarita",
    administrative_area = "CA",
    postal_code = "92688",
    country = "United States"
))

# Make the POST request
response_object = personator_identity.post(PersonatorIdentityResponse)

# Access the response value
result_code = response_object.result_code

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