Giter VIP home page Giter VIP logo

gettyimages-api_php's People

Contributors

caseymacpherson avatar chrissimmons avatar ionutcalara avatar jeffgoo avatar jphillips-gettyimages avatar mapitman avatar mtreuberg avatar paulkruggetty avatar sarukod avatar ssterli2 avatar sweetviper avatar technosailor avatar tuco86 avatar willjw avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gettyimages-api_php's Issues

Fix build

The automated build is not running for pull requests and pushes to main. Looks like a simple fix in the build.yml file.

Support access token

Hi there,

I found the OAuth refresh token scenario where I can authenticate with that, but I couldn't find any way to bypass that in case I stored the access token. Is this possible?

Deprecation warning: Optional parameter declared before required parameter in WebHelper

Using the library in Version "gettyimages/gettyimages-api": "^5.1" triggers deprecation warnings like this:

PHP Deprecated:  Optional parameter $options declared before required parameter $filepath is implicitly treated as a required parameter in /[...]/vendor/gettyimages/gettyimages-api/src/Request/WebHelper.php on line 104

I already opened a PR to fix it: #26

PHP-DI 6.x causes bug due to removed function

PR #16 enabled usages of newer versions of PHP-DI, however it also introduced a bug due to the removal of the DI\object() function in PHP-DI 6.x:

[30-Sep-2021 14:10:29 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function DI\Object() in /var/www/html/vendor/gettyimages/gettyimages-api/src/GettyImages_Client.php:102
Stack trace:
#0 /var/www/html/vendor/gettyimages/gettyimages-api/src/GettyImages_Client.php(121): GettyImages\Api\GettyImages_Client->__construct()
#1 /var/www/html/app/getty/container.php(41): 

(partial stack trace)

Note the removal in PHP-DI's upgrade guide: https://github.com/PHP-DI/PHP-DI/blob/master/doc/migration/6.0.md#diobject

Setting "accept-language" header

Hey guys,

as far as I can see there is no other possibility to set the "accept-language" header other than by changing the source code of your php SDK. Or am I missing here something? It would be really handy if I could set additional curl options e. g. via a method in der FluentRequest class which will pass the options to the WebHelper object once it has been created. Is something like that planned in the near future or am I on my own on this?

Thanks,
Andreas

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.