0% found this document useful (0 votes)
78 views

API

The document contains a series of cURL commands to call various API endpoints for user authentication, profile management, sharing content, liking content, getting statistics, and answering quizzes. The cURL requests include authorization headers to authenticate the user for each call.

Uploaded by

Ashhish
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

API

The document contains a series of cURL commands to call various API endpoints for user authentication, profile management, sharing content, liking content, getting statistics, and answering quizzes. The cURL requests include authorization headers to authenticate the user for each call.

Uploaded by

Ashhish
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Highlighted appname

login

curl -X POST \
http://52.172.159.129/api/login/oreo \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: d5a7fade-1133-6419-977f-5ee9da220746'

get profile

curl -X GET \
http://52.172.159.129/api/my_profile/oreo \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'postman-token: 6117ae50-1acf-5504-8c2e-21bc97b5f520'

update profile

curl -X PUT \
http://52.172.159.129/api/my_profile/fantasy \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: ab7cd3f2-f34f-9143-0113-54820f6dad2b'

share

curl -X POST \
'http://localhost:5000/api/ipl/action?type=share' \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: 41e7f5b7-9f8b-aaac-c89a-bb3ef563bfcc'

like
curl -X POST \
'http://localhost:5000/api/ipl/action?type=like' \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: 41e7f5b7-9f8b-aaac-c89a-bb3ef563bfcc'

get total share

curl -X GET \
'http://localhost:5000/api/oreao/totalCount?type=share' \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'postman-token: ff137c07-55eb-637b-e0d8-8b30bea86f71'

get total like

curl -X GET \
'http://localhost:5000/api/oreao/totalCount?type=like' \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'postman-token: ff137c07-55eb-637b-e0d8-8b30bea86f71'

get user share count

curl -X GET \
'http://52.172.159.129/api/ipl/action?type=share' \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'postman-token: 4d3cbabe-92d4-b5ce-0d45-8e45430b8f28'

get user like count

curl -X GET \
'http://52.172.159.129/api/ipl/action?type=share' \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'postman-token: 4d3cbabe-92d4-b5ce-0d45-8e45430b8f28'
get quiz

curl -X GET \
http://52.172.159.129/api/oreo/quiz \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'postman-token: 53aeed6e-dd32-48bd-9af5-e706653cd9b6'

answer submit

url -X POST \
http://52.172.159.129/api/oreo/quiz/questions/q-864bfcdc-66ae-4a4b-85e4-307f37fd6240/answer \
-H 'authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaG9uZU5vIjoiODkwMDAwMDAwMCIsImlhdCI
6MTU2MTY0Mzk2OH0.HcvACbHH8B85YS_zGSRI37SK8zPwr75C746MwMmF4eM' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: 067f4cb1-fcf0-6950-39ce-4ffb277a6dfe' \
-d '{
"answer":["a"]
}'

You might also like