bnbhostapi icon indicating copy to clipboard operation
bnbhostapi copied to clipboard

api key

Open karmon opened this issue 6 years ago • 10 comments

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?

karmon avatar Sep 12 '18 21:09 karmon

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

christophgasser avatar Nov 08 '18 21:11 christophgasser

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

karmon avatar Nov 08 '18 22:11 karmon

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 [email protected]: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 avatar Feb 19 '19 18:02 davidplappert

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

davidplappert avatar Feb 19 '19 18:02 davidplappert

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?

karmon avatar Feb 21 '19 20:02 karmon

@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

davidplappert avatar Mar 04 '19 17:03 davidplappert

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'"

karmon avatar Mar 04 '19 17:03 karmon

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

earlvanze avatar Apr 28 '19 06:04 earlvanze

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

AceBy avatar Jan 09 '20 19:01 AceBy

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

earlvanze avatar Jan 27 '20 03:01 earlvanze