Giter VIP home page Giter VIP logo

kiota-http-guzzle-php's Introduction

Kiota HTTP Library for PHP

Build Status Latest Stable Version Coverage

The Kiota HTTP Library for PHP is the PHP HTTP library implementation with Guzzle.

A Kiota generated project will need a reference to a HTTP package to make HTTP requests to an API endpoint.

Read more about Kiota here.

Using the Kiota HTTP Library for PHP

run composer require microsoft/kiota-http-guzzle or add the following to your composer.json file:

{
    "require": {
        "microsoft/kiota-http-guzzle": "^1.1.0"
    }
}

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

kiota-http-guzzle-php's People

Contributors

andrueastman avatar baywet avatar dependabot[bot] avatar ndiritu avatar silaskenneth avatar

Stargazers

 avatar  avatar  avatar

Watchers

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

kiota-http-guzzle-php's Issues

map XXX error status code

related to microsoft/kiota#4025
add a 3rd case in the error handling of the request adapter for XXX (must be the 3rd in the order, first sepcific code, then 4XX or 5XX depending on the first number, then XXX)

RetryHandler passes seconds instead of milliseconds to Guzzle delay option

Hi,
I've came across a problem, where querying Graph API caused my program to „freeze“. I suspected retry handler to be a problem and dug into the code.
In the RetryHandler I see, that there is a Guzzle option delay set here and here. The variable $delaySecs bears delay value in seconds, but Guzzle delay options accepts delay parameter in milliseconds.

Shouldn't the delaySecs be passed in milliseconds rather than seconds?

Support `GuzzleHttp\ClientInterface`

The Microsoft\Kiota\Http\GuzzleRequestAdapter constructor requires an instance of the GuzzleHttp\Client class. By typehinting to a concrete implementation (especially one that is annotated as final), this makes using custom implementations next to impossible (especially should the Guzzle maintainers add the final keyword to the class declaration). Instead, the GuzzleHttp\ClientInterface should be typehinted against as the implementation does not rely on features specific to the concrete class.

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.