Coder Social home page Coder Social logo

php-rest-client's People

Contributors

railsguy avatar romanpitak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

php-rest-client's Issues

Readme incomplete

Thank you for your excellent work. In the Readme, you should probably specify in the example:

$client = new RestClient\Client('https://raw.githubusercontent.com/romanpitak');

instead of:

$client = new Client('https://raw.githubusercontent.com/romanpitak');

If you use composer to pull out and install dependencies, the simple new Client() call won't work. Thanks

Post data preprocessing

In Request::buildResponse(), preprocess the post data in self::DATA_KEY before assigning them to $curlOptions[CURLOPT_POSTFIELDS]. Check if it's an array etc.

Setting headers?

Hi, Roman,

I was thrilled to find your PHP-REST-Client package, but wondering if there was a method for setting custom headers? For example, I need to make a request to an API that wants a token to verify authentication. Can "x-access-token" or any other header value be set before requests are fired off?

Update: Nevermind. I did what I SHOULD have done and looked through your classes. I'm seeing the $headers option in newRequest().

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.