Create connection

Onur Akpolat edited this page Oct 27, 2016 · 1 revision

Create a follow or friend connection between two users.

Endpoint

PUT https://api.tapglue.com/0.4/me/connections

Params

Name Type
user_to_id int
user_to_id_string string
type string
state string

Example

curl https://api.tapglue.com/0.4/me/connections \
    -u [[app:key]]:SESSION_TOKEN \
    -X PUT \
    -H "User-Agent: Tapglue Test UA" \
    -H 'Accept: application/json' \
    -H "Content-Type: application/json" \
    -d "{\"user_to_id\":\"18828624887025797\",\"type\":\"follow\",\"state\":\"confirmed\"}"

Response

{
  "user_from_id": 19134370992361060,
  "user_from_id_string": "19134370992361060",
  "user_to_id": 18828624887025796,
  "user_to_id_string": "18828624887025796",
  "type": "follow",
  "state": "confirmed",
  "created_at": "2016-01-10T18:18:05.809181658Z",
  "updated_at": "2016-01-10T18:18:05.809181658Z"
}
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.