Backend URL : https://lad-network.herokuapp.com
Type | Endpoints | Description |
---|---|---|
POST | /api/auth/register | Register User using Auth0 |
GET | /api/api/users | Get User Info |
PUT | /api/api/users/:id | Update User |
DELETE | /api/api/users | Delete User Account |
GET | /api/offers | Get offers |
GET | /api/offers/:id | Get offers by id |
POST | /api/offers | Add offers |
PUT | /api/offers/:id | Update Offer |
DELETE | /api/offers/:id | Delete Offer |
GET | /api/ads | get all ads |
GET | /api/ads/:id | Get ads by id |
POST | /api/ads | Post an ads |
PUT | /api/ads/:id | update ads by id |
DELETE | /api/ads/:id | Delete an ads |
GET | /api/ads/offers/:id | get offers by id |
GET | /api/ads/allads/:id | get accepted ads by affiliate_id |
GET | /api/analytics | GET analytics |
GET | /api/analytics/:id | Get analytics by id |
POST | /api/analytics | POST analytics |
POST | /api/checkout/connect_customer | Post StripeConnect/create |
POST | /api/checkout/create_customer | Post Cosumter/create |
POST | /api/checkout/charge_customer | Post StripeConnect/create |
POST | /api/checkout/connect_customer | POST charge customer |
POST | /api/checkout/payout | POST payout customer (affiliate) |
GET | /api/checkout/payout | GET payouts for customer |
GET | /api/checkout/payments | GET charge customer (advertiser) |
GET | /api/checkout/notifications | Get all notifications |
GET | /api/checkout/notifications/:id | Get notifications by id |
POST | /api/checkout/notifications | POST all notifications private and adminCheck |
GET | /api/agreements | GET agreements |
GET | /api/agreements/:id | GET agreements by id |
POST | /api/agreements | post agreements |
PUT | /api/agreements/:id | PUT agreements |
DELETE | /api/agreements/:id | delete agreements |
POST | /api/contactform | POST Send an email for contact form on landing page |
GET, PUT, DELETE 200 success ✅ Private
{
"id": 4,
"name": "John Benedict Miranda",
"email": "jbmiranda22796@gmail.com",
"image_url": "https://media.licdn.com/dms/image/C4E03AQHWn1xyl8YaSA/profile-displayphoto-shrink_100_100/0?e=1560384000&v=beta&t=rSgo6M7-lDWtq772krO-EBB8gskFCGRlecEbVqQEJDU",
"nickname": "jbmiranda22796",
"sub": "linkedin|5gWW_xGV9g",
"acct_type": "affiliate",
"phone": null,
"amount": 0,
"show_tour": true,
"stripe_cust_id": null,
"stripe_payout_id": null,
"stripe_balance": 0,
"offers": 0,
"ads": 0,
"agreements": 1
}
GET, DELETE, PUT 200 success ✅
[
{
"id": 1,
"price_per_click": 0.5,
"price_per_impression": 0.02,
"num_applicants": 0,
"budget": 150,
"name": "Hamza's Offer",
"description": "Hamza's Description",
"category": "Finance",
"currency": "USD",
"status": true,
"user_id": 2,
"created_at": "2019-04-12T22:26:12.853Z",
"updated_at": "2019-04-12T22:26:12.853Z",
"active": false,
"accepted": false,
"agreement_id": null
}
]
500 error ❌
{
"message": {
"message": "Invalid token specified: Unexpected token \u0007 in JSON at position 278"
}
}
GET, DELETE, PUT 200 success ✅
[
{
"id": 1,
"name": "HELLO",
"destination_url": "",
"active": true,
"size": "horizontal_banner",
"offer_id": 1,
"user_id": 2,
"image": "https://res.cloudinary.com/dypcywjue/image/upload/v1555108065/blbbqzuvg5m7hdkg2hhv.png",
"created_at": "2019-04-12T22:27:45.368Z",
"updated_at": "2019-04-12T22:27:45.368Z"
}
]
GET, DELETE, PUT 200 success ✅
{
"clicks": [],
"impressions": [],
"conversions": [],
"actionCount": {
"impressions": 0,
"clicks": 0,
"conversions": 0
},
"browserCount": {
"chrome": 0,
"safari": 0,
"edge": 0,
"firefox": 0,
"other": 0
},
"cities": [],
"growth": {
"clicks": null,
"impressions": null,
"conversions": null
},
"offersRanking": [
{
"id": 1,
"price_per_click": 0.5,
"price_per_impression": 0.02,
"num_applicants": 0,
"budget": 150,
"name": "Hamza's Offer",
"description": "Hamza's Description",
"category": "Finance",
"currency": "USD",
"status": true,
"user_id": 2,
"created_at": "2019-04-12T22:26:12.853Z",
"updated_at": "2019-04-12T22:26:12.853Z",
"ctr": 100
}
],
"devices": []
}
GET, DELETE, PUT 200 success ✅
[
{
"id": 2,
"active": true,
"offer_id": 2,
"affiliate_id": 4,
"created_at": "2019-04-12T23:55:01.545Z",
"updated_at": "2019-04-12T23:55:01.545Z",
"name": "Luffy "
}
]
500 error ❌
{
"message": "You need to passed Headers !"
}