1️Authentication APIs (3)
The authentication apis are prerequisite to use address book api and other apis
Step 1: Get Session API
GET
https://api.socialinviter.com/api/v2/session
This API will provide the session key and the list of all available services for the APP. This session key should be used in all the other API calls.
Note: The session key is valid for 24 hours
Query Parameters
Name | Type | Description |
---|---|---|
license* | string | The license which you can get from your SocialInviter account. |
Step 2: Get Authentication URL API
Note: For apple
service, please directly call get token API.
GET
https://api.socialinviter.com/api/v2/auth
This API allows you to get the authentication URL, then redirect the user to this auth URL for authentication.
Query Parameters
Name | Type | Description |
---|---|---|
service* | string | name of the service you want to authenticate, eg: |
redirecturl | string | (MOSTLY NEEDED IF YOU ARE NOT USING oauth.html) if you want to override the redirect URL provided in your license settings, pass this parameter |
product* | string | name of the product, eg: |
Headers
Name | Type | Description |
---|---|---|
session* | string |
|
Step 3: Get Token API
The below video shows how to get the "code" after authenticating your user.
3.1 > Get Token API (For all services other than APPLE)
POST
https://api.socialinviter.com/api/v2/accesstoken
Get access token that will be used to fetch the address book.
Headers
Name | Type | Description |
---|---|---|
session* | string |
|
content-type* | string | Value should be as below |
Request Body
Name | Type | Description |
---|---|---|
service* | string | name of the service, eg: |
code* | string | Code value which you received in QueryString on The example format should be -> abc:123 |
product* | string | name of the product, eg: |
3.2 > Get Token API (Only for APPLE service)
POST
https://api.socialinviter.com/api/v2/accesstoken
Get access token that will be used to fetch the address book.
Headers
Name | Type | Description |
---|---|---|
session* | string |
|
content-type* | string | Value should be as below
|
Request Body
Name | Type | Description |
---|---|---|
service* | string | name of the service, eg: |
email* | string | Email id of the user |
password* | string | App-specific password or password |
product* | string | name of the product, eg: |
Last updated