Skip to content

Instantly share code, notes, and snippets.

@tibinthomas9
Created February 2, 2018 06:03
Show Gist options
  • Save tibinthomas9/42b270ad8f70ba31a5102b072312b591 to your computer and use it in GitHub Desktop.
Save tibinthomas9/42b270ad8f70ba31a5102b072312b591 to your computer and use it in GitHub Desktop.
contests api
Request
curl -X GET \
http://api-staging.jackpotrising.com/v3/games/58/contests \
-H 'authorization: Bearer oRrqTyNxQFia9ZK60zw5Yw' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'mode: test' \
-H 'postman-token: 64372f12-f592-453a-4dac-c56b03f07bc1' \
Response
{
"success": true,
"message": "List obtained successfully",
"list": {
"active_contests": [],
"archived_contests": [
{
"id": 325,
"created_at": "2017-08-30T06:21:54.842453Z",
"updated_at": "2018-01-16T10:47:50.406105Z",
"deleted_at": null,
"name": "Berry tournament test",
"start_date": "2017-08-28T04:00:00Z",
"end_date": "2017-09-15T22:15:00Z",
"description": "Top 3 order",
"jackpot": 100,
"contest_type": "High Score",
"payout": "Top 3",
"app_id": 58,
"app": {
"id": 58,
"created_at": "2017-02-03T07:34:38.890322Z",
"updated_at": "2018-01-23T10:38:49.678272Z",
"deleted_at": null,
"name": "Test Experion",
"scheme": "JR58://",
"developer": null,
"developer_id": 2,
"icon": "https://s3-us-west-2.amazonaws.com/jr-staging/developers/2/01564080-eb31-4e5c-bcce-486dd57e81a6",
"backsplash": "https://s3-us-west-2.amazonaws.com/jr-staging/developers/2/d69a6122-4e5c-4a2f-9cff-172843b5ae62",
"android_state": 0,
"ios_state": 0,
"arcade_state": 0,
"description": "Testing Game",
"game_currency_icons": null,
"game_currency_payout_webhook": "",
"onesignal_app_id": "",
"onesignal_api_key": "",
"android": true,
"android_link": "com.test",
"android_package": "com.test",
"android_version": 1,
"approved_android_version": 1,
"ios": true,
"ios_bundle": "com.test",
"ios_app_id": 0,
"ios_link": "https://itunes.apple.com/us/app/helix-jackpot-rising/id1202948413?ls=1&mt=8",
"ios_version": "1.0",
"approved_ios_version": "1.0",
"arcade": false,
"arcade_version": "",
"approved_arcade_version": "",
"arcades": null,
"arcade_locations": null,
"featured": false,
"featured_order": 0,
"data_link": false,
"auth_keys": null,
"genres": null,
"genre_ids": "4,12",
"platforms": null,
"platform_ids": "1,2,3,4,5,6",
"game_video_url": "",
"current_version_android": 0,
"current_version_ios": "1.0"
},
"current_user_high_score": 0,
"current_leader_high_score": 0,
"extra_data": "{}",
"payout_number": 3,
"payout_array": null,
"payout_preset": "1",
"settled": true,
"test": true,
"user_contest": false,
"user_id": 50000307,
"contest_privacy": "public",
"protected": false,
"contest_password": "",
"contest_keyword": "",
"featured": false,
"featured_order": 0,
"top_25_leaderboard": null,
"competitors": 0,
"funding": {
"id": 273,
"created_at": "2017-08-30T06:21:54.810492Z",
"updated_at": "2017-08-30T06:21:54.810492Z",
"deleted_at": null,
"funding_source": "earnings",
"amount_to_add": 100,
"amount_to_charge": 0,
"zooz_payment_id": 0,
"account_id": 10,
"contest_id": 0,
"game_currency": false,
"game_currency_icon_id": 0,
"game_currency_icon": null
},
"funding_id": 273,
"escrow_id": 2981,
"is_recurring": false,
"recurring_contest_id": 0,
"tier_ids": "1,2,3",
"tier_settings": [
{
"id": 51,
"created_at": "2017-08-30T06:21:55.037835Z",
"updated_at": "2017-08-30T06:21:55.037835Z",
"deleted_at": null,
"contest_id": 325,
"amount_to_play": 0,
"jackpot_percentage": 25,
"ad_supported": false,
"attempts_per_ad": 0,
"rules": "",
"tier_id": 1,
"parameters": ""
},
{
"id": 52,
"created_at": "2017-08-30T06:21:55.051839Z",
"updated_at": "2017-08-30T06:21:55.051839Z",
"deleted_at": null,
"contest_id": 325,
"amount_to_play": 0.55,
"jackpot_percentage": 35,
"ad_supported": false,
"attempts_per_ad": 0,
"rules": "",
"tier_id": 2,
"parameters": ""
},
{
"id": 53,
"created_at": "2017-08-30T06:21:55.068508Z",
"updated_at": "2017-08-30T06:21:55.068508Z",
"deleted_at": null,
"contest_id": 325,
"amount_to_play": 0.6,
"jackpot_percentage": 40,
"ad_supported": false,
"attempts_per_ad": 0,
"rules": "",
"tier_id": 3,
"parameters": ""
}
],
"notified_ending_soon": false,
"rules": "",
"ad_supported": false,
"attempts_per_ad": 0,
"high_volume": false,
"high_volume_min": 0,
"high_volume_max": 0,
"paid_entry": false,
"can_charge_card": false
}
],
"featured_contests": [],
"user_contests": []
},
"page_id": 0,
"per_page": 10
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment