You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$subdomain = "subdomain";
$username = "email@example.com"; // replace this with your registered email
$token = "6wiIBWbGkBMo1mRDMuVwkw1EPsNkeUj95PIz2akv"; // replace this with your token
I am facing this error -
Fatal error: Uncaught Error: Class 'Zendesk\API\HttpClient' not found in index.php:54 Stack trace: #0 {main} thrown in index.php on line 54
On my localhost using xampp got below error -
Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with message 'Client error: GET https://od-basehelp.zendesk.com/api/v2/tickets.json resulted in a 401 Unauthorized response: {"error":"Couldn't authenticate you"} ' in D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:111 Stack trace: #0 D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\guzzlehttp\guzzle\src\Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\guzzlehttp\promises\src\Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response)) #2 D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\guzzlehttp\promises\src\Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array) #3 D:\xampp\htdocs\projects\zendes in D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\zendesk\zendesk_api_client_php\src\Zendesk\API\Http.php on line 92
The text was updated successfully, but these errors were encountered:
Hello,
After installing the composer using below script
// load Composer
require 'vendor/autoload.php';
use Zendesk\API\HttpClient as ZendeskAPI;
$subdomain = "subdomain";
$username = "email@example.com"; // replace this with your registered email
$token = "6wiIBWbGkBMo1mRDMuVwkw1EPsNkeUj95PIz2akv"; // replace this with your token
$client = new ZendeskAPI($subdomain);
$client->setAuth('basic', ['username' => $username, 'token' => $token]);
I am facing this error -
Fatal error: Uncaught Error: Class 'Zendesk\API\HttpClient' not found in index.php:54 Stack trace: #0 {main} thrown in index.php on line 54
On my localhost using xampp got below error -
Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with message 'Client error:
GET https://od-basehelp.zendesk.com/api/v2/tickets.json
resulted in a401 Unauthorized
response: {"error":"Couldn't authenticate you"} ' in D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:111 Stack trace: #0 D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\guzzlehttp\guzzle\src\Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\guzzlehttp\promises\src\Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response)) #2 D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\guzzlehttp\promises\src\Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array) #3 D:\xampp\htdocs\projects\zendes in D:\xampp\htdocs\projects\zendesk\zendesk_api_client_php-master\vendor\zendesk\zendesk_api_client_php\src\Zendesk\API\Http.php on line 92The text was updated successfully, but these errors were encountered: