campaigns
Partcipate

Paricipate

This API allows ther consumer to participate in a campign, this is the API that generates valuable data for the advertiser.

Request

Endpoint

GET https://demo.rewardadz.com/public/api/v1/gateway/:campaign_id/consumer_participates

Parameters

campaign_id:string

Headers

x-access-token:string
x-consumer-token:string

Response

The API returns the the details about the campaign and how to participate.

Below is a success request

{
  "success": true,
  "ra_message": "campaign fetched successfully",
  "ra_response_data": {
    "name": "Financial Litracy",
    "description": "Thank you for participating in our financial literacy survey. Your responses will help us understand your level of financial knowledge and awareness. Please answer the following questions honestly.",
    "type": "survey",
    "logo": "https://storage.googleapis.com/rewardadz-922c1.appspot.com/ra.jpeg?GoogleAccessId=firebase-adminsdk-agxoy%40rewardadz-922c1.iam.gserviceaccount.com&Expires=4856057415&Signature=qPLsy6JEB9%2B8kx1K%2BhBNX7A77%2BhlpAM6c7HLUQK9OyA3eNQ4oLS0o7oSKG%2B9sIkNtIcOOYLh7QmgmBrgiFS91Y5MlITTdAtEpJmiHlkfafgpLHoBkqQppBQgUCEWlAxok3ltAInLgS5aihSY3m6MlTJU9XgRhAfmMxxmxsd2W7fkB8bc7PAXpnbP48LOh5SL%2FfapwUvoTKIHNiL8iBosq82LrWl6i2ppXr3V8bn%2Fr3yhSf1c7J3qTHM%2BbxEewj3ATP3mAg%2BsiHJYHjrRHn12lpW7XN3OpHkbwtWSri4MBhAbXKaU3SY%2FUff1OwuDxrbh%2B14l7mE7M3VC5TmSqwNxGA%3D%3D",
    "content_file": "https://storage.googleapis.com/rewardadz-922c1.appspot.com/ra.jpeg?GoogleAccessId=firebase-adminsdk-agxoy%40rewardadz-922c1.iam.gserviceaccount.com&Expires=4856057415&Signature=qPLsy6JEB9%2B8kx1K%2BhBNX7A77%2BhlpAM6c7HLUQK9OyA3eNQ4oLS0o7oSKG%2B9sIkNtIcOOYLh7QmgmBrgiFS91Y5MlITTdAtEpJmiHlkfafgpLHoBkqQppBQgUCEWlAxok3ltAInLgS5aihSY3m6MlTJU9XgRhAfmMxxmxsd2W7fkB8bc7PAXpnbP48LOh5SL%2FfapwUvoTKIHNiL8iBosq82LrWl6i2ppXr3V8bn%2Fr3yhSf1c7J3qTHM%2BbxEewj3ATP3mAg%2BsiHJYHjrRHn12lpW7XN3OpHkbwtWSri4MBhAbXKaU3SY%2FUff1OwuDxrbh%2B14l7mE7M3VC5TmSqwNxGA%3D%3D",
    "content": [
      {
        "type": "open",
        "question": "On a scale of 1 to 10, how would you rate your overall financial literacy?",
        "choices": [],
        "created_at": "2023-12-13T08:50:15+00:00",
        "updated_at": "2023-12-13T08:50:15+00:00",
        "_id": "6579704725ef96a79ebe60ce",
        "__v": 0
      },
      {
        "type": "open",
        "question": "Do you have a budget for your monthly expenses?",
        "choices": [],
        "created_at": "2023-12-13T08:50:15+00:00",
        "updated_at": "2023-12-13T08:50:15+00:00",
        "_id": "6579704725ef96a79ebe60cf",
        "__v": 0
      }
    ],
    "payout": 50,
    "share_link": "",
    "created_at": "2023-12-13T08:50:15+00:00"
  }
}