Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Undefined property: GuzzleHttp\Psr7\Response::$data" #3

Open
ghost opened this issue Dec 3, 2018 · 4 comments
Open

"Undefined property: GuzzleHttp\Psr7\Response::$data" #3

ghost opened this issue Dec 3, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 3, 2018

I m using laravel 5.7 in my localhost. when i will install this package step by step. after setup set all require configuration. when i run my project in localhost following error will occur

"Undefined property: GuzzleHttp\Psr7\Response::$data"

@ghost
Copy link
Author

ghost commented Dec 3, 2018

its my code in my controller NOTE: credential not included
laravel version : 5.7

use Nahid\EnvatoPHP\Envato;

public function EnvatoData()
{
$config = [
"client_id" => '',
'client_secret' => '',
"redirect_uri" => '',
'use_personal_token' => FALSE,
'personal_token' => '',
'app_name' => '',
];

    $envato = new Envato($config);
    $envato->getAuthUrl();
    
    $user = $envato->me()->accounts();
    dd($user->data);  
    
    return view('envato_signin');
}

@kaankilic
Copy link

this means that your request is unauthenticated. you have to config your api to connect via OAuth on Envato api as you can see de response of $user variable. The package works perfectly with Laravel 5.7 as I tested on my app.

@ghost
Copy link
Author

ghost commented Jan 3, 2019

this means that your request is unauthenticated. you have to config your api to connect via OAuth on Envato api as you can see de response of $user variable. The package works perfectly with Laravel 5.7 as I tested on my app.

first off all thank you so much for faithful reply me.
can you give me installation steps for configure this api as per you config on your app with OAuth

@ghost
Copy link
Author

ghost commented Jan 4, 2019

this means that your request is unauthenticated. you have to config your api to connect via OAuth on Envato api as you can see de response of $user variable. The package works perfectly with Laravel 5.7 as I tested on my app.

Thnx man...Now it work perfectly........

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant