Giter Site home page Giter Site logo

airbnb-sdk's Introduction

Time stats

visitors

  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on solving problems for social good

airbnb-sdk's People

Contributors

dependabot[bot] avatar ojengwa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mcdavidsh

airbnb-sdk's Issues

Feat: Allow sending message to hosts

I'm submitting a ...

[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary

I couldn't find any API here allowing sending message to guests.
It would be great to get it here.

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Here is the copied fetch request query, I am not sure what I am doing wrong.

await fetch("https://www.airbnb.co.in/api/v3/ThreadCreateMessageItem?operationName=ThreadCreateMessageItem&locale=en-IN&currency=INR", {
    "credentials": "include",
    "headers": {
        "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0",
        "Accept": "*/*",
        "Accept-Language": "en-US,en;q=0.5",
        "Content-Type": "application/json",
        "X-Airbnb-Supports-Airlock-V2": "true",
        "X-Airbnb-API-Key": "d306zoyjsyarp7ifhu67rjxn52tv0t20",
        "X-CSRF-Token": "V4$.airbnb.co.in$X9DM-r23c2xxxxx",
        "X-CSRF-Without-Token": "1",
        "X-Airbnb-GraphQL-Platform": "web",
        "X-Airbnb-GraphQL-Platform-Client": "minimalist-niobe",
        "X-Niobe-Short-Circuited": "true",
        "X-Client-Version": "51e85df475b0d32d053d479a30064237ae2aa14b",
        "x-client-request-id": "19taw2615a1wjr0dv41fs1rqd8yw",
        "Sec-Fetch-Dest": "empty",
        "Sec-Fetch-Mode": "cors",
        "Sec-Fetch-Site": "same-origin",
        "Sec-GPC": "1"
    },
    "referrer": "https://www.airbnb.co.in/guest/inbox/155X00X005?thread_type=home_booking&inbox_type=guest",
    "body": "{\"operationName\":\"ThreadCreateMessageItem\",\"variables\":{\"threadId\":\"1556009005\",\"contentType\":\"text\",\"content\":{\"body\":\"testing\"},\"uniqueIdentifier\":\"e768f467-eb99-49a4-9c9a-525bab9d007b\"},\"extensions\":{\"persistedQuery\":{\"version\":1,\"sha256Hash\":\"657f2cf7cea65a789f6d6e1270003f93fa8c177598cbb706d11a06576891d860\"}}}",
    "method": "POST",
    "mode": "cors"
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.