Coder Social home page Coder Social logo

Comments (5)

max21910 avatar max21910 commented on August 16, 2024

It seems like you're encountering difficulties with accessing the endpoint correctly. The endpoint you're trying to access requires authentication and specific headers to be set in the request.

Here's an example of how you can authenticate and set the required headers in your request:

http

--



GET /api/search/profile/xyz?query=example_query HTTP/1.1
Host: bereal.com
Content-Type: application/grpc
Te: trailers
Bereal-App-Language: en-US
Bereal-Device-Language: en
Bereal-Device-Id: 42B868DA-8CF4-4501-8375-B4CDCAC3B15F
Bereal-App-Version: 2.3.2
Bereal-OS-Version: 17.3.1
Bereal-Platform: iOS
Bereal-User-Id: cT1PBLx47lUEwGAsyOhUH2jhdP22 (this is my id change it with your own id)
Bereal-App-Version-Code: 15894
Bereal-Timezone: Europe/Paris
Accept-Encoding: br;q=1.0, gzip;q=0.9, deflate;q=0.8
User-Agent: BeReal/2.3.2 (AlexisBarreyat.BeReal; build:15894; iOS 17.3.1)
Accept-Language: en-US;q=1.0, fr-FR;q=0.9
Bereal-Signature: MToxNzA5MjM4MTU4Ol8JItzQbiyPzbdSm8N9qgC6zxZtyINDmTV+L74m5Dn9
Authorization: Bearer [your_access_token]
Please make sure to replace [your_access_token] 

I also use MITMProxy connected to my iPhone running the BeReal application to monitor and analyze every request made.

By employing this setup, we can closely inspect the requests and responses exchanged between the BeReal app and their servers.

from bereal.

hahhahahdnnah avatar hahhahahdnnah commented on August 16, 2024

I am authenticated. The problem is that the endpoint is always responsing with a 400 error code. Your example:
/api/search/profile/xyz?query=example_query
also returned a 400 error, changing example_query with a real name.

from bereal.

max21910 avatar max21910 commented on August 16, 2024

maybe this can help : https://shomil.me/bereal/

from bereal.

hahhahahdnnah avatar hahhahahdnnah commented on August 16, 2024

No, I'm sorry that doesn't help. It doesn't show a way on how to use /search endpoint. I know some time ago the /search endpoint worked like this:
/api/search/profile?query=xyz where all users with xyz were displayed. Badly thats not the case any more. The only thing this endpoint returns is a 400 error (Bad Request (the request exists but my query (/api/search/profile?query=xyz) was bad)).
Can you provide an example when you use the search function in bereal?

from bereal.

max21910 avatar max21910 commented on August 16, 2024

Hi, sorry for the delay. A 400 error can mean that BeReal changed this API request, so it's no longer available. If I find a similar API request like the search API you're trying to use, I will message you about it. Have a great day!

from bereal.

Related Issues (20)

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.