davidplappert / bnbhostapi

AirBnb API for hosts
https://www.airbnb.com/rooms/18412320
MIT License
41 stars 19 forks source link

api key #1

Open karmon opened 6 years ago

karmon commented 6 years ago

Hi David! Great work in this repo, I would love to help you maintain it. I was wondering how the api key works. I tried to use the one you had in config and it worked for a while but than it stopped after a day. Is there a way to generate those keys?

christophgasser commented 6 years ago

Have the same question. How to get a valid API key?

karmon commented 6 years ago

@christophgasser what are you working on? you can reach me at assafkar at gmail

davidplappert commented 5 years ago

Sorry I didn't see this sooner. Here is how you generate an api key:

To set this API up, follow these steps: I assume you have node installed (nvm maybe?) and that you have a listing on AirBnb.

npm install bnbhostapi (or git clone git@github.com:davidplappert/bnbhostapi.git && npm install) export bnbhostapi_username='xxxxxxx' (replace with your email) export bnbhostapi_password='xxxxxxx' (replace with your password) node examples/login.js (this generates a oauth token we need for the rest of the api calls) export bnbhostapi_oauthtoken = xxxxxx (output from the above script) node examples/getPayouts.js (to make sure your setup is correct).

davidplappert commented 5 years ago

I will accept as much help as I can get with this! Just submit PRs and I will review them. @karmon @christophgasser

karmon commented 5 years ago

Hi @davidplappert! I hope to be able to improve the repo and start making some PR's soon! btw, where do you get the api key from in config.js?

davidplappert commented 5 years ago

@karmon follow these steps: https://github.com/davidplappert/bnbhostapi#to-set-this-api-up-follow-these-steps

Note, the token is generated in step 4

karmon commented 5 years ago

hi David! I understand how to get the auth token. My question is about the api key in the config. "'x-airbnb-api-key': '915pw2pnf4h1aiguhph5gc5b2'"

earlvanze commented 5 years ago

Yeah we need a new x-airbnb-api-key unfortunately

AceBy commented 4 years ago

@davidplappert @karmon @earlvanze @christophgasser Any luck with the Aibnb API Key

earlvanze commented 4 years ago

I gave up and decided to pursue the integration via Smartbnb instead, since I already use their platform heavily for automation. They just opened their API and I can theoretically send messages to Airbnb via Smartbnb's messaging, as they have a legitimate Airbnb API key. https://www.smartbnb.io/?afmc=fj&utm_campaign=fj&utm_source=leaddyno&utm_medium=affiliate