Twitter Accounts

Twitter Accounts Documentation

Twitter Account [LIST]

Twitter Account [LIST]

Request

Endpoint

GET /api/v2/contacts/7cb56bd0-790b-4828-a20d-ffad60c8c145/people/d8a02bcd-9041-4ed1-a5c2-d1025db393c9/twitter_accounts
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": [
    {
      "id": "c944e712-94d6-4940-85a4-fad439effc9d",
      "type": "twitter_accounts",
      "attributes": {
        "created_at": "2021-11-23T14:38:19Z",
        "primary": false,
        "remote_id": 1,
        "screen_name": "lashaunda",
        "updated_at": "2021-11-23T14:38:19Z",
        "updated_in_db_at": "2021-11-23T14:38:19Z"
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 1,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    }
  }
}

Fields

data

Type [Twitter Account]

Description An array of Twitter Accounts

Twitter Account [POST]

Twitter Account [POST]

Request

Endpoint

POST /api/v2/contacts/079be6f4-8e4a-45ea-ae47-01c093b9e7ec/people/af1124b8-5ff7-4956-a3fd-7869b1f5ecca/twitter_accounts
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "twitter_accounts",
    "attributes": {
      "remote_id": 3,
      "screen_name": "leroy",
      "updated_in_db_at": "2021-11-23 14:38:19 UTC"
    }
  }
}

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

Required No

primary

Type boolean

Description Whether or not this Twitter Account is the Person's primary account

Required No

remote_id

Type integer

Description The id for this Twitter Account from Twitter.com (this will likely be null)

Required No

screen_name

Type string

Description The screen name for the Person's Twitter Account

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
201 Created

Body

{
  "data": {
    "id": "2ae9861d-e66f-4d3b-b3d5-7bd923d41063",
    "type": "twitter_accounts",
    "attributes": {
      "created_at": "2021-11-23T14:38:19Z",
      "primary": false,
      "remote_id": 3,
      "screen_name": "leroy",
      "updated_at": "2021-11-23T14:38:19Z",
      "updated_in_db_at": "2021-11-23T14:38:19Z"
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

primary

Type boolean

Description Whether or not this Twitter Account is the Person's primary account

remote_id

Type integer

Description The id for this Twitter Account from Twitter.com (this will likely be null)

screen_name

Type string

Description The screen name for the Person's Twitter Account

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Twitter Account [GET]

Twitter Account [GET]

Request

Endpoint

GET /api/v2/contacts/225b7351-0980-4eed-9ba9-7ab414abd240/people/07877f35-263d-4f2a-b22c-e230f8ba1cd0/twitter_accounts/edac1c43-52f9-4e6f-8559-d0d8b6481189
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "edac1c43-52f9-4e6f-8559-d0d8b6481189",
    "type": "twitter_accounts",
    "attributes": {
      "created_at": "2021-11-23T14:38:19Z",
      "primary": false,
      "remote_id": 4,
      "screen_name": "mose",
      "updated_at": "2021-11-23T14:38:19Z",
      "updated_in_db_at": "2021-11-23T14:38:19Z"
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

primary

Type boolean

Description Whether or not this Twitter Account is the Person's primary account

remote_id

Type integer

Description The id for this Twitter Account from Twitter.com (this will likely be null)

screen_name

Type string

Description The screen name for the Person's Twitter Account

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Twitter Account [PUT]

Twitter Account [PUT]

Request

Endpoint

PUT /api/v2/contacts/55808288-0139-4805-96d3-84d9e134fcfd/people/d0b9fbc2-dd05-4505-8a92-4c5fe183e5e4/twitter_accounts/44f47d20-7572-454b-b358-62e9d3866804
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "twitter_accounts",
    "attributes": {
      "remote_id": 8,
      "screen_name": "malika.schowalter",
      "updated_in_db_at": "2021-11-23 14:38:20 UTC"
    }
  }
}

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

Required No

overwrite

Type boolean

Description Only used for updating a record where you want to ignore the server's ' 'updated_in_db_at value and force overwrite the values for the record. ' 'Must be true to work.

Required No

primary

Type boolean

Description Whether or not this Twitter Account is the Person's primary account

Required No

remote_id

Type integer

Description The id for this Twitter Account from Twitter.com (this will likely be null)

Required No

screen_name

Type string

Description The screen name for the Person's Twitter Account

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "44f47d20-7572-454b-b358-62e9d3866804",
    "type": "twitter_accounts",
    "attributes": {
      "created_at": "2021-11-23T14:38:20Z",
      "primary": false,
      "remote_id": 8,
      "screen_name": "malika.schowalter",
      "updated_at": "2021-11-23T14:38:20Z",
      "updated_in_db_at": "2021-11-23T14:38:20Z"
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

primary

Type boolean

Description Whether or not this Twitter Account is the Person's primary account

remote_id

Type integer

Description The id for this Twitter Account from Twitter.com (this will likely be null)

screen_name

Type string

Description The screen name for the Person's Twitter Account

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Twitter Account [DELETE]

Twitter Account [DELETE]

Request

Endpoint

DELETE /api/v2/contacts/c320d699-63c0-4da9-b1c2-e109d5cb6325/people/8391ff50-0440-4541-9d2c-36a1c7f342df/twitter_accounts/9fc57a5e-6dcb-47ca-bee3-2f61de35b540
Content-Type: application/vnd.api+json

Body

Response

Headers

204 No Content

Body

Last updated