Open iamharisali opened 3 years ago
I think you are talking about this repo https://github.com/ayles-software/laravel-zoho-desk
Have you got a record in your database with the refresh_token
and token
?
There were no records in db. I manually created access and refresh tokens in the db. After that I started getting error:
Required option not passed: "access_token"
League\OAuth2\Client\Token\AccessToken::__construct vendor/league/oauth2-client/src/Token/AccessToken.php:96
Did you find the issue here?
It sounds the the oauth setup flow is not completed.
Getting this error when I try to run the create ticket function
Argument 1 passed to AylesSoftware\ZohoDesk\ZohoDesk::__construct() must be an instance of AylesSoftware\ZohoDesk\Entities\ZohoDeskAccess, null given
The application has been authenticated using the flow() method
$response = ZohoDesk::createToken([ 'subject' => 'Support message - Test user', 'description' => 'This is the body of the ticket', 'departmentId' => '0000000000000000', // this can be found within ZohoDesk 'email' => 'contact@email.com', 'contact' => [ 'email' => 'contact@email.com', 'firstName' => 'Benjamin', ], ]);
Running this through my route gives the error I mentioned