zxol / airbnbapi

Unofficial airbnb.com REST API wrapper for node.js
MIT License
218 stars 52 forks source link

setAvailabilityForDay method does not seem to work #29

Open pbvillaflores opened 5 years ago

pbvillaflores commented 5 years ago

I find set setAvailabilityForDay does not work but setPriceForDay is ok.

> var setav;
undefined
> airbnb.setAvailabilityForDay({
...     id: 27836280,
...     date: '2019-07-29',
...     availability: 'blocked' // or 'blocked'?
... }).then( v => { setav = v } ) .catch( e => { console.log(e) } )
Promise {
  <pending>,
  domain:
   Domain {
     domain: null,
     _events:
      [Object: null prototype] {
        removeListener: [Function: updateExceptionCapture],
        newListener: [Function: updateExceptionCapture],
        error: [Function: debugDomainError] },
     _eventsCount: 3,
     _maxListeners: undefined,
     members: [],
     [Symbol(kWeak)]: WeakReference {} } }
>
> setav
undefined