Contrib API Documentation

Get Featured Challenge

Use this function to get the featured challenges assigned to a domain

Method

GET

URL

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

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=getfeaturedchallenge&key={xxxxxxxxx}&domain={domain}&featured_id={challenge_id}

API Responses

sample json data:
{
"success": true,
"data": [
{
"Photo": "https://cdn.vnoc.com/challenge/photo_url.png",
"MoreDetails": "html of more details content",
"short_desc": "",
"PrizeDescription": "html of price description",
"ChallengeId": "237",
"remaining_days": "10",
"ChallengeTitle": "Survey Challenge",
"Winners_Announced": "2019-12-28",
"HowToDesc": null,
"HashTag": "#surveychallenge",
"Judging_From": "2019-12-27",
"CriteriaDescription": "html for criteria description ",
"ChallengeDesc": "Challenge description",
"Submission_From": "2019-03-22",
"Judging_To": "2019-12-27",
"Submission_To": "2019-12-27",
"Slug": "q---a-survey-gamification-community-script",
"EquityPoints": "1000",
"DaysRequired": "0",
"participants": "2"
}]
}


API Errors

[
 {
"success":false
 }
]