[英]Getting 'Google_Service_Exception' using with reseller api scope
Getting 'Google_Service_Exception' using the reseller API scope: 使用转销商API范围获取“ Google_Service_Exception”:
Fatal error: Uncaught exception 'Google_Service_Exception' with message '{ "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } } ' in C:\\xampp\\htdocs\\customerportal\\vendor\\google\\apiclient\\src\\Google\\Http\\REST.php:118 Stack trace: #0 C:\\xampp\\htdocs\\customerportal\\vendor\\google\\apiclient\\src\\Google\\Http\\REST.php(94): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp\\Psr7\\Response), Object(GuzzleHttp\\Psr7\\Request), 'Google_Service_...') #1 [internal function]: Google_Http_REST::doExecute(Object(GuzzleHttp\\Client), Object(GuzzleHttp\\Psr7\\Request), 'Google_Service_...') #2 C:\\xampp\\htdocs\\customerportal\\vendor\\google\\apiclient\\src\\Google\\Task\\Runner.php(181): call_user_func_array(Array, Array) #3 C:\\xampp\\htdocs\\customerportal\\vendor\\google\\apiclient\\src\\Google\\Http\\REST.php(58): Google_Task_Runner->run() #4 C:\\xampp\\htdocs\\customerportal\\vendor\\google\\apiclient
致命错误:未捕获的异常'Google_Service_Exception',消息为'{“ error”:{“ errors”:[{“ domain”:“ global”,“ reason”:“ insufficientPermissions”,“ message”:“权限不足”}], “代码”:403,“消息”:“权限不足”}}'在C:\\ xampp \\ htdocs \\ customerportal \\ vendor \\ google \\ apiclient \\ src \\ Google \\ Http \\ REST.php:118堆栈跟踪:#0 C :\\ xampp \\ htdocs \\ customerportal \\ vendor \\ google \\ apiclient \\ src \\ Google \\ Http \\ REST.php(94):Google_Http_REST :: decodeHttpResponse(Object(GuzzleHttp \\ Psr7 \\ Response),Object(GuzzleHttp \\ Psr7 \\ Request), 'Google_Service _...')#1 [内部功能]:Google_Http_REST :: doExecute(Object(GuzzleHttp \\ Client),Object(GuzzleHttp \\ Psr7 \\ Request),'Google_Service _...')#2 C:\\ xampp \\ htdocs \\ customerportal \\ vendor \\ google \\ apiclient \\ src \\ Google \\ Task \\ Runner.php(181):call_user_func_array(Array,Array)#3 C:\\ xampp \\ htdocs \\ customerportal \\ vendor \\ google \\ apiclient \\ src \\ Google \\ Http \\ REST.php(58):Google_Task_Runner-> run()#4 C:\\ xampp \\ htdocs \\ customerportal \\ vendor \\ google \\ apiclient \\src\\Goog in C:\\xampp\\htdocs\\customerportal\\vendor\\google\\apiclient\\src\\Google\\Http\\REST.php on line 118
\\ src \\ Goog在C:\\ xampp \\ htdocs \\ customerportal \\ vendor \\ google \\ apiclient \\ src \\ Google \\ Http \\ REST.php在第118行
Follow the Reseller API: Authorizing guide on how to authorize your requests. 遵循转销商API:授权指南,了解如何授权您的请求。 Follow the steps indicated and don't forget the scope,
https://www.googleapis.com/auth/apps.order
. 请按照指示的步骤操作,不要忘记范围
https://www.googleapis.com/auth/apps.order
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.