Understanding How The API Works
Creating a contact in the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.
REST Syntax | Associated API Topics |
SOAP Syntax | Update Contact (API) |
Get Contacts (API) | |
Delete Contact (API) |
REST Syntax
Click to view all REST Resources | |
Contact/ POST — Creates a new contact.
HTTP Action — POST URI — https://api.dynect.net/REST/Contact/<nickname>/ |
|
Arguments — Click for More Info
string string string string string string string string string string string string string string string |
|
Response — Click for More Info
string string string string string string string string string string string string string string string |
SOAP Syntax
Click to view all SOAP Commands | |
CreateContact — Creates a new contact. |
Arguments — Click for More Info
string string string string string string string string string string string string string string string string string string |
Response — Click for More Info
|
Example Request — Click for More Info
{ 'nickname' => 'nick1', 'first_name' => 'fname1', 'last_name' => 'lname1,', 'email' => 'dyn@example.com', 'notify_email' => 'notify@example.com', 'pager_email' => 'page@example.com', 'address' => 'address1', 'address_2' => 'address2', 'city' => 'Manchester', 'state' => 'NH', 'post_code' => '03103', 'country' => 'US', 'phone' => '5554445555', 'fax' => '5557775555', 'website' => 'http://www.dyn.com', 'organization' => 'Dynamic Network Services, Inc.', 'token'=> 'zaq12wsxcDe34rf89gt56nh', } |