Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Co-Host Issua #35

Open
abcdtree opened this issue Oct 14, 2019 · 4 comments
Open

Co-Host Issua #35

abcdtree opened this issue Oct 14, 2019 · 4 comments

Comments

@abcdtree
Copy link

While most of the functions this API provide are based on Primary Host, right? For example, the function, will only return the Listings which hosted by the token authorized user. What if there are listings that co-hosted by the user, is there any route we could use to get the limited version of information which is provided to the co-host?

@antocorr
Copy link

Hi, have you tried to use getOwnListings? It returns co-hosted listings too.

@pbvillaflores
Copy link

Does getOwnListings() actually work? I was trying it--and not sure why it has a userId argument.

@antocorr
Copy link

userId is the user you are querying. So the chain should be,

airbnb.getOwnUserInfo(TOKEN).then(userInfo => {
     airbnb.getOwnListings({
        token: TOKEN,
        userId: userInfo.id
    }).then()

@igorzelaya
Copy link

Indeed. For example

airbnb.getReservations({token: myToken,offset: 0,limit: 4});

returns an empty array. Does anybody knows how to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants