User
Fetches authorized user's dashboard information
GET
https://gateway-relay.herokuapp.com/api/user/dashboardInfo
Headers
Name
Type
Description
Authorization*
jwt token
received via authenticating with the auth endpoints. To learn more about the authentication flow, click here.
{
userInfo: {
credits: 100,
subscriptionAmount: 25,
permanentExp: 1100,
subscriptionExp: 3300,
percentToNextPermanentBadge: 5,
percentToNextSubscriberBadge: 7.5,
isSubscriber: true,
canCheckIn: true
},
permanentBadge: {
exp_lower_bound: 1000,
exp_upper_bound: 2000,
exp_growth_rate: 100,
bonus_creds_push_ads: .10,
bonus_creds_video_ads: .10,
bonus_creds_offerwall: .10,
bonus_creds_surveys: .10,
bonus_daily_check_in_attempts: 3,
credits_back_percent: .05,
acceptable_credit_debt: 500,
related_check_in_drops: 14
},
subscriberBadge:{
exp_lower_bound: 3000,
exp_upper_bound: 4000,
exp_growth_rate: 300,
bonus_creds_push_ads: .30,
bonus_creds_video_ads: .30,
bonus_creds_offerwall: .30,
bonus_creds_surveys: .30,
bonus_daily_check_in_attempts: 6,
credits_back_percent: .10,
acceptable_credit_debt: 1500,
related_check_in_drops: 21
},
modifiers: [
{
id: 12,
related_user: '0x218C2BbaaBa0D66ddcD5De942Ed2980Bbfd1f004',
modifier_type: 'BONUS_PUSH_ADS_CREDITS',
value: .10,
expires_at: '2022-08-19T14:55:22Z',
created_at: '2022-08-24T14:55:22Z'
}
],
earningHistory: [
{
related_user: '0x218C2BbaaBa0D66ddcD5De942Ed2980Bbfd1f004',
credit_source: 'SUBSCRIBED_PAYOUT',
credits_earned: 476.19,
credits_before: 0,
credits_after: 476.19
}
],
transactionHistory: [
{
transaction_hash: '0xcd56ff1157e172bfed0310526ac14c135d59628eb046a62ac71ed7380585cf87',
related_user: '0x218C2BbaaBa0D66ddcD5De942Ed2980Bbfd1f004',
expected_cost: 32,
real_cost: 29,
credits_before: 476.19,
credits_after: 447.19,
status: 'Success'
}
],
checkInDropTable: {
maxBonusCreditsPushAds: .30,
minBonusCreditsPushAds: .15,
maxBonusCreditsVideoAd: .24,
minBonusCreditsVideoAd: .11,
maxBonusCreditsOfferwall: .21,
minBonusCreditsOfferwall: .09,
maxBonusCreditsSurvey: .24,
minBonusCreditsSurvey: .11,
maxCreditsBackPercent: .10,
minCreditsBackPercent: .05,
maxExperience: 1000,
minExperience: 300,
maxCredits: 500,
minCredits: 30
}
}
Fetches authorized user's possible check in drops
GET
https://gateway-relay.herokuapp.com/api/user/checkInDrops
Headers
Name
Type
Description
Authorization*
jwt token
received via authenticating with the auth endpoints. To learn more about the authentication flow, click here.
{
maxBonusCreditsPushAds: .30,
minBonusCreditsPushAds: .15,
maxBonusCreditsVideoAd: .24,
minBonusCreditsVideoAd: .11,
maxBonusCreditsOfferwall: .21,
minBonusCreditsOfferwall: .09,
maxBonusCreditsSurvey: .24,
minBonusCreditsSurvey: .11,
maxCreditsBackPercent: .10,
minCreditsBackPercent: .05,
maxExperience: 1000,
minExperience: 300,
maxCredits: 500,
minCredits: 30
}
Executes check in
GET
https://gateway-relay.herokuapp.com/api/user/executeCheckIn
Headers
Name
Type
Description
Authorization*
jwt token
received via authenticating with the auth endpoints. To learn more about the authentication flow, click here.
{
result: {
type: 'BONUS_CREDITS_BACK',
value: .15,
effectiveTimeInMinutes: 30
},
possibleResults: [
{
type: 'EXPERIENCE',
value: 150,
effectiveTimeInMinutes: undefined
},
{
type: 'BONUS_CREDITS_BACK',
value: .15,
effectiveTimeInMinutes: 30
},
{
type: 'BONUS_PUSH_ADS_CREDITS',
value: .10,
effectiveTimeInMinutes: 60
}
]
}
Last updated