API - v1.0 - create-contact
Description
- Creates a new contact record.
- Returns the ContactId of the created contact record (long).
HTTP Binding
| URL: |
http://api.sendgm.com/v1.0/method/create-contact |
| Method: |
POST |
Parameters
| Name
| Description
| Required
|
| ApiKey |
Valid API Key. |
Yes |
| Contact.ContactTypeId |
1 for email contacts, 2 for phone contacts, and 3 for SMS contacts. |
Yes |
| Contact.ContactValue |
If ContactTypeId is 1 then ContactValue must be an email address; otherwise, ContactValue must be a phone number. |
Yes |
| Contact.FirstName |
First name of contact. |
No |
| Contact.LastName |
Last name of contact. |
No |
| Contact.Nick |
Nick of contact. |
No |
| Contact.Verified |
0 if unverified and 1 if verified. Messages are only delivered to verified contacts. |
No |
Example
Your code should emulate the posting of this form to create a contact...