baileyherbert / envato.php Goto Github PK
View Code? Open in Web Editor NEW๐ Composer package for the Envato API.
Home Page: https://packagist.org/packages/baileyherbert/envato
๐ Composer package for the Envato API.
Home Page: https://packagist.org/packages/baileyherbert/envato
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.
$client->profile->portfolio(['username' => 'baileyherbert', 'site' => 'codecanyon.net']);
This is not working anymore
The correct line is
$client->profile->portfolio(['username' => 'baileyherbert', 'site' => 'codecanyon']);
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?
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
$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)
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!
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.
guzzle
outside of the existing ^6.5.5
constraintHi, 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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.