Coder Social home page Coder Social logo

Comments (4)

Clancey avatar Clancey commented on August 11, 2024

Yes, there are two ways you can do this. One is by using the generator. That is how you would use the code you linked in the issue. A more complete example would be the youtube. It doesn't have post but you just annotate a property with body.

The other option is to manually build your requests. There is a sample of that here.

from simple_auth.

brettpappas avatar brettpappas commented on August 11, 2024

Thanks for the response. I did try both of these options and still couldn't get the body passed to the request. I will try debugging the code to see where it is getting lost.

from simple_auth.

brettpappas avatar brettpappas commented on August 11, 2024

@Clancey The problem seems to be with the replace method in the Request object, whenever this is called - like when it wants to set the oauth token in the headers (authenticateRequest) - it will remove the body property.

A simple solution would be to add the body property to the replace method. Another option would be to use replaceBody method everywhere instead of replace but that seems less ideal.

Do you want me to submit a PR for this or do you have a better solution?

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

I had an issue with this when Dart2 came out: e9917fc

I think I may have botched it then. Adding it to the replace method.

from simple_auth.

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.