Contrib API Documentation

Get Challenge Discussions

Use this function to get challenge discussions

Method

GET

URL

https://e7lq80c199.execute-api.us-west-2.amazonaws.com/api1?request=getchallengediscussions

Making a Request

Available request parameters are:
  • domain — domain name (should be in contrib/vnoc system).
  • featured_id — challenge id assigned as featured challenge. This is returned from calling getdomainattributes for a challenge domain
  • key — domain API key.

  • Sample Request

    https://e7lq80c199.execute-api.us-west-2.amazonaws.com/api1?request=getchallengediscussions&key={xxxxxxxxx}&domain={domain}&featured_id={challenge_id}

API Responses

sample json data:
{
"success": true,
"data": [
{
"challenge_id": "250",
"LastName": "G",
"message": "This is my message",
"date_posted": "2019-02-03 14:56:48",
"member_id": "90728",
"Username": "jane-doe",
"profile_image": "jane-doe.png",
"FirstName": "shreya"
},{
"challenge_id": "250",
"LastName": "Ink",
"message": "This is user's message",
"date_posted": "2016-07-11 22:09:32",
"member_id": "77389",
"Username": "john-doe",
"profile_image": "john-doe.png",
"FirstName": "Gstvo"
}]
}


API Errors

[
 {
"success":false
 }
]