Resource: /contactrequest

  1. GET /<contactrequest_id>
  2. PUT /<contactrequest_id>
  3. DELETE /<contactrequest_id>
  4. List of connections


GET /<contactrequest_id>

Authenticated resource

Retrieve a pending contact request.

Example

https://api.viadeo.com/<contactrequest_id>?language=fr&user_detail=NONE&user_pending_request=false&access_token=...

Query parameters

Parameter nameDescriptionTypeDefault value
language=Language in which the profile will be displayed. Default value is the navigation language of the user on the website.ISO-639
user_detail=Retrieve more information about a member's profile (location, headline, ...). Refer to our advanced API usesection for more information.NONE | PARTIAL | FULLNONE
user_pending_request=Retrieve the id with the related user if there is any pending request.
DEPRECATED, removed 2013-08-31. Reason: More ...complete information available by using /user/pending_requests connection - returns pending connection requests between you and given user. Replaced by: pending_requests connection. Deprecated since: 2013-01-31.
BOOLEANFALSE
user_watermark=Provide pictures with a watermark.BOOLEANTRUE

Response [JSON] [XML]

Field nameDescriptionType
fromRequest origin (member).STRUCT
idGraph resource's ID.STRING
linkLink to the current Graph resource on Viadeo website.STRING
messageMessage of the request.STRING
mutual_contact_countNumber of common contacts.INTEGER
nameGraph resource's name.STRING
subjectSubject of the request.STRING
toRequest target (member).STRUCT
typeGraph resource's type.STRING
updated_timeGraph resource's Last update date.ISO-8601 [YYYY-MM-DD'T'HH:MM:SSZZ]

PUT /<contactrequest_id>

Authenticated resource

Allows user accept or decline pending contact request.

Example

curl --data-urlencode -X PUT -d 'contact_card=BUSINESS&message=XxXxX&value=accept' https://api.viadeo.com/<contactrequest_id>?access_token=...

Query parameters

Parameter nameDescriptionTypeDefault value
contact_card=Type of contact card sent to the requesting user.BUSINESS | PERSO | NONE | ALLBUSINESS
message=Message that will be sent to the requesting user, empty by default.STRING
value=Type of the operation.ACCEPT | DECLINE

Response

Field nameDescriptionType
updatedAlways true if resource is updated.TRUE

DELETE /<contactrequest_id>

Authenticated resource

Allows user to delete one of their pending requests.

Example

curl --data-urlencode -X DELETE https://api.viadeo.com/<contactrequest_id>?access_token=...

Response

Field nameDescriptionType
deletedAlways true if resource is deleted.TRUE

List of connections

Connection pathDescription