Giter Site home page Giter Site logo

baileyherbert / envato.php Goto Github PK

View Code? Open in Web Editor NEW
37.0 5.0 23.0 288 KB

๐Ÿ‚ Composer package for the Envato API.

Home Page: https://packagist.org/packages/baileyherbert/envato

PHP 100.00%
envato envato-market themeforest codecanyon envato-api

envato.php's People

Contributors

ajayfroiden avatar baileyherbert avatar demonicious avatar dependabot-support avatar evrpress avatar gdarko avatar harryqt avatar vaibhavpandeyvpz avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

envato.php's Issues

Help Me

Hello Bailey.........
how are you...

i will install this package in my laravel 5.7 app. So when i run project till the authentication its work good but after redirect url page no any type of response or output get. i just simple print $client variable. but no any output display. please help me if i missing any configuration or other setting.

Get a user's newest items

$client->profile->portfolio(['username' => 'baileyherbert', 'site' => 'codecanyon.net']);
This is not working anymore

The correct line is

$client->profile->portfolio(['username' => 'baileyherbert', 'site' => 'codecanyon']);

Compatibility with Laravel Socialite and BadRequestException

Hoi Bailey,

I want to handle the authentication process with Laravel Socialite. How can we make this package compatibility with the Laravel Socialite package or is that not possible?

Also;
When I try to verify purchase code I am always getting a "400 Bad Request" message.

I am trying like so: $response = $client->user->sale(['code' => $purchase_code]);

The "code" parameter is not applied in to the url schema. Why?

Error while creating new client

Hi, first of all thank you for the wonderful sdk.
Well, I tried using the sdk but got the following error (after delegating access from Envato).

This is the Line # 21
$client = new Herbert\EnvatoClient($token);

Here is the Error
Fatal error: Uncaught TypeError: Argument 1 passed to Herbert\EnvatoClient::__construct() must implement interface Herbert\Envato\Auth\AuthProcedure, string given, called in /xxxx/xxxx/example.com/api/envato/index.php on line 21 and defined in /xxxx/xxxx/example.com/api/envato/vendor/baileyherbert/envato/src/EnvatoClient.php:44 Stack trace: #0 /xxxx/xxxx/example.com/api/envato/index.php(21): Herbert\EnvatoClient->__construct('1EDetvr5cIFNNHU...') #1 {main} thrown in /xxxx/xxxx/example.com/api/envato/vendor/baileyherbert/envato/src/EnvatoClient.php on line 44

Not working

$response = $client->catalog->categories(['site' => 'codecanyon.net']);
var_dump($response);

Results:

  ["results":"Herbert\Envato\ResultSet":private]=>
  NULL
  ["error":"Herbert\Envato\ResultSet":private]=>
  NULL
  ["time":"Herbert\Envato\ResultSet":private]=>
  float(0.63289904594421)

callable example

Hi,
Thank you for this library

Unfortunately, I can't make working the callable $store feature. I need to create a function ? how to integrate ?

Can you please share an example ?

Thank you!

Relax guzzle version constraint

It would be ideal for the package's guzzle requirement to specify a broader version constraint, such as ^6.0 || ^7.0. This issue will track the work needed to complete that change.

  • Investigate compatibility with all supported versions of guzzle outside of the existing ^6.5.5 constraint
  • Implement a multi-environment test workflow targeting PHP 5.5 and PHP 8.2 with GitHub Actions

[Need Help] Correct way to handle TooManyRequestsException

Hi, so Envato rate limiting me. I wants to correctly handle it.

Envato wrote:

If you do manage to cross the acceptable number of requests you are permitted to make, you will receive a HTTP 429 response. Included in this response is a HTTP header Retry-After that will denote in seconds how long you have to wait until you're able to make requests again.

So, the Retry-After header would contain how many seconds I have to wait before I can request again if I'm being rate limited.

  1. How can I get the Retry-After info?

I'm using a loop, so instead of throwing a fatal error, I wants to use sleep and continue the loop.

Sorry, if I'm asking too much.

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.