2️Address Book API

API to fetch all contacts

In order to import Address Book of a logged in user, you should have a valid session and a token.

See here for How to get session key and How to get token

Address Book API

POST https://api.socialinviter.com/api/v2/contacts

Address Book API

Headers

NameTypeDescription

session*

string

Session key which you received from Session API

content-type*

string

The value should be as below application/x-www-form-urlencoded

Request Body

NameTypeDescription

userid*

string

UserID of the logged in user. The UserID will be received from accesstoken API call.

service*

string

Name of the service eg: google, yahoo, outlook etc. see Supported Service list below

token*

string

Token received from Token API

startindex

string

By default the startindex is 1. If the startindex is passed as a parameter, then the pagesize parameter is required.

pagesize

string

By default, the page size is 2000. If the pagesize and startindex is not passed as a parameter then all contacts will be returned.

product*

string

name of the product, eg: contactimporter, socialpost ,socialconnect

{
  "data": {
    "addressbook": [
      {
        "address": [
          {
            "city": "San Jose",
            "country": "US",
            "formattedaddress": "Fallen Leaf Dr, San Jose, CA 94041 US",
            "state": "CA",
            "street": "Fallen Leaf Dr",
            "zip": "94041"
          }
        ],
        "birthday": {
          "day": "11",
          "month": "04",
          "year": "1978"
        },
        "email": [
          "[email protected]",
          "[email protected]"
        ],
        "imageurl": "",
        "name": {
          "first_name": "Johnxxx",
          "last_name": "Smithxxx"
        },
        "notes": "test",
        "phone": [
          "650 324 xxxx",
          "643 922 xxxx"
        ],
        "website": [
          "http://socialinviter.com"
        ]
      }
    ],
    "pagination": {
      "hasMore": true
    },
    "renewedToken": "",
    "service": "google"
  },
  "status": {
    "message": "",
    "type": "success"
  }
}

Only for CSV and VCARD services

POST https://api.socialinviter.com/api/v2/contacts

Address Book (Only for CSV and VCARD services)

Headers

NameTypeDescription

session

string

Session key which you received from Session API

content-type

string

The value should be as below application/x-www-form-urlencoded

Request Body

NameTypeDescription

service*

string

Name of the service eg: csv or vcard

fileurl*

string

Web URL of the CSV or VCARD file.

product*

string

name of the product, eg: contactimporter, socialpost ,socialconnect

{
  "data": {
    "addressbook": [
      {
        "address": [
          {
            "city": "San Jose",
            "country": "US",
            "formattedaddress": "Fallen Leaf Dr, San Jose, CA 94041 US",
            "state": "CA",
            "street": "Fallen Leaf Dr",
            "zip": "94041"
          }
        ],
        "birthday": {
          "day": "11",
          "month": "04",
          "year": "1978"
        },
        "email": [
          "[email protected]",
          "[email protected]"
        ],
        "imageurl": "",
        "name": {
          "first_name": "Johnxxx",
          "last_name": "Smithxxx"
        },
        "notes": "test",
        "phone": [
          "650 324 xxxx",
          "643 922 xxxx"
        ],
        "website": [
          "http://socialinviter.com"
        ]
      }
    ],
    "pagination": {
      "hasMore": true
    },
    "renewedToken": "",
    "service": "google"
  },
  "status": {
    "message": "",
    "type": "success"
  }
}
3️Get User APIError HandlingSupported Services

Last updated