POST api.ashx/v2/users/{followerid}/following.{json|xml}
CREATE a follow for a user by user id.
Scopes
Users › Modify Followers/Following users.following.modify
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| FollowerId | int? | Either FollowerId or FollowerName is required. | Optional | |||
| FollowerName | string | Either FollowerId or FollowerName is required. | Optional | |||
| FollowingId | int | Following Id | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/users/{followerid}/following.json',
data: {
'followerid': '6',
'FollowingId': '6'
}
}).then(function(response) {
// use response
});Example Responses
JSON
{
"Follow": {
"FollowingId": 6,
"FollowerId": 25
},
"Info": [
"string",
"string"
],
"Warnings": [
"string",
"string"
],
"Errors": [
"string",
"string"
]
}XML
<?xml version="1.0" encoding="utf-16"?>
<Response>
<Info>
<Message>string</Message>
<Message>string</Message>
</Info>
<Warnings>
<Message>string</Message>
<Message>string</Message>
</Warnings>
<Errors>
<Message>string</Message>
<Message>string</Message>
</Errors>
<Follow>
<FollowingId>6</FollowingId>
<FollowerId>25</FollowerId>
</Follow>
</Response>POST api.ashx/v2/users/{followername}/following.{json|xml}
CREATE a follow for a user by username.
Scopes
Users › Modify Followers/Following users.following.modify
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| FollowerId | int? | Either FollowerId or FollowerName is required. | Optional | |||
| FollowerName | string | Either FollowerId or FollowerName is required. | Optional | |||
| FollowingId | int | Following Id | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/users/{followername}/following.json',
data: {
'followername': 'followername',
'FollowingId': '6'
}
}).then(function(response) {
// use response
});Example Responses
JSON
{
"Follow": {
"FollowingId": 6,
"FollowerId": 25
},
"Info": [
"string",
"string"
],
"Warnings": [
"string",
"string"
],
"Errors": [
"string",
"string"
]
}XML
<?xml version="1.0" encoding="utf-16"?>
<Response>
<Info>
<Message>string</Message>
<Message>string</Message>
</Info>
<Warnings>
<Message>string</Message>
<Message>string</Message>
</Warnings>
<Errors>
<Message>string</Message>
<Message>string</Message>
</Errors>
<Follow>
<FollowingId>6</FollowingId>
<FollowerId>25</FollowerId>
</Follow>
</Response>