使用转销商API范围获取'Google_Service_Exception':
致命错误:未捕获的异常'Google_Service_Exception',消息'{“错误”:{“errors”:[{“domain”:“global”,“reason”:“insufficientPermissions”,“message”:“权限不足” },“code”:403,“message”:“权限不足”}}'在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 \请求),'Google_Service _...')#1 [内部功能]:Google_Http_REST :: doExecute(对象(GuzzleHttp \ Client),对象(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 \ api第118行的C:\ xampp \ htdocs \ customerportal \ vendor \ google \ apiclient \ src \ Google \ Http \ REST.php中的client \ src \ Goog
答案 0 :(得分:0)
按照Reseller API: Authorizing指南了解如何授权您的请求。
按照指示的步骤操作,不要忘记范围https://www.googleapis.com/auth/apps.order
。