Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
manthankool authored Jul 20, 2018
1 parent b01bcf7 commit 9645b80
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,30 @@ Extracting price of hotel rooms and comparing them(MakCorps)
This project is all about extracting prices from more than 200 websites like expedia and hotels.com. This API provides you with prices from different websites and reviews and ratings of the hotel.

Please, do not abuse the terms and conditions of the project. Hope this project can help junior developers to make android and web apps on hotel management.



So here , we have stated two simple steps through CURL to make a query to our API.

1) JWT token.

curl --request POST \
--url 'https://api.makcorps.com/auth' \
--header 'Content-Type: application/json' \
--data '{
"username":"xxxxx",
"password":"xxxxx"
}'

2) Get request to our /city endpoint


curl --request GET \
--url https://api.makcorps.com/free/london \
--header 'Authorization: JWT eyJ0eXAiOiJKV1Q'


put your JWT token after JWT in step 2



0 comments on commit 9645b80

Please sign in to comment.