PUT api/ManageUser/{email}/SocialMedia
Used to update social media settings of a user
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
string |
Required |
Body Parameters
SocialMediaDTOName | Description | Type | Additional information |
---|---|---|---|
status |
Whether the social media login for the provider is enabled |
boolean |
None. |
socialmediatype |
The type of social media service |
string |
None. |
providerId |
Provider Id of the social media service |
string |
None. |
ProviderOAuthAccessToken |
This is the per authentication transaction access token provided by oAuth provider. Generally the value is generally a long alphanumeric string. For example : "EAAaqLtI9eD8BAJcJHVFgVh0pFZAOw8IaoLOEdxpd4jaxYiazZBZB0toQrPxLkyhxGI0LHxgS2ZAetmQpmwuoraZAzZCkVLnptwPmfRdjJZBgmoZCjKWL4sg6QeQxwdywDwWyZCf9eUzGEctXYZB12mZBAB6gcPILm1f7AJcPieb8jj4LTaZCZAnaCb9xfCrOzHLVgCjdEKa0wz5mBhQZDZD" |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "status": true, "socialmediatype": "sample string 2", "providerId": "sample string 3", "ProviderOAuthAccessToken": "sample string 4" }
text/xml
Sample:
<SocialMediaDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"> <ProviderOAuthAccessToken>sample string 4</ProviderOAuthAccessToken> <providerId>sample string 3</providerId> <socialmediatype>sample string 2</socialmediatype> <status>true</status> </SocialMediaDTO>
multipart/form-data
Sample:
<SocialMediaDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><ProviderOAuthAccessToken>sample string 4</ProviderOAuthAccessToken><providerId>sample string 3</providerId><socialmediatype>sample string 2</socialmediatype><status>true</status></SocialMediaDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
JsonResponseName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
ErrorMessage | Collection of string |
None. |
|
EntityId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorMessage": [ "sample string 1", "sample string 2" ], "EntityId": 1, "Success": true }
text/xml
Sample:
<JsonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models"> <EntityId>1</EntityId> <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ErrorMessage> <Success>true</Success> </JsonResponse>
multipart/form-data
Sample:
<JsonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models"><EntityId>1</EntityId><ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></ErrorMessage><Success>true</Success></JsonResponse>