We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$mail = LaravelGmail::setUserId($mailbox->mailbox->uuid)->message()->get($threadId); $bodyContent = "Hi reply 1 from " . $your_email_id . ". Date :" . Carbon\Carbon::now(); $mail->using($accessToken); $to = $mail->getFromEmail(); $toName = $mail->getFromName(); $from = $mail->getTo(); $mail->message($bodyContent); $mail->from($from[0]['email'], $from[0]['name']); $mail->to($to, $toName); $reply = $mail->reply(); $reply = $reply->load();
return error { "message": "{\n \"error\": {\n \"code\": 401,\n \"message\": \"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.\",\n \"errors\": [\n {\n \"message\": \"Invalid Credentials\",\n \"domain\": \"global\",\n \"reason\": \"authError\",\n \"location\": \"Authorization\",\n \"locationType\": \"header\"\n }\n ],\n \"status\": \"UNAUTHENTICATED\"\n }\n}\n", "exception": "Google\\Service\\Exception", "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 134, "trace": [ { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 107, "function": "decodeHttpResponse", "class": "Google\\Http\\REST", "type": "::" }, { "function": "doExecute", "class": "Google\\Http\\REST", "type": "::" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Task/Runner.php", "line": 187, "function": "call_user_func_array" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 66, "function": "run", "class": "Google\\Task\\Runner", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Client.php", "line": 922, "function": "execute", "class": "Google\\Http\\REST", "type": "::" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Service/Resource.php", "line": 238, "function": "execute", "class": "Google\\Client", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient-services/src/Gmail/Resource/UsersMessages.php", "line": 215, "function": "call", "class": "Google\\Service\\Resource", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/dacastro4/laravel-gmail/src/Traits/Replyable.php", "line": 301, "function": "send", "class": "Google\\Service\\Gmail\\Resource\\UsersMessages", "type": "->" }, { "file": "/var/www/wcbackend_prod/routes/api.php", "line": 155, "function": "reply", "class": "Dacastro4\\LaravelGmail\\Services\\Message\\Mail", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 205, "function": "{closure}", "class": "Illuminate\\Routing\\RouteFileRegistrar", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 179, "function": "runCallable", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 680, "function": "run", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 30, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php", "line": 41, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php", "line": 58, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 104, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 682, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 657, "function": "runRouteWithinStack", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 623, "function": "runRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 612, "function": "dispatchToRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 176, "function": "dispatch", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 30, "function": "Illuminate\\Foundation\\Http\\{closure}", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/barryvdh/laravel-cors/src/HandleCors.php", "line": 58, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Barryvdh\\Cors\\HandleCors", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/fideloper/proxy/src/TrustProxies.php", "line": 57, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Fideloper\\Proxy\\TrustProxies", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php", "line": 27, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php", "line": 62, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 104, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 151, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 116, "function": "sendRequestThroughRouter", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/var/www/wcbackend_prod/public/index.php", "line": 55, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" } ] }
{ "message": "{\n \"error\": {\n \"code\": 401,\n \"message\": \"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.\",\n \"errors\": [\n {\n \"message\": \"Invalid Credentials\",\n \"domain\": \"global\",\n \"reason\": \"authError\",\n \"location\": \"Authorization\",\n \"locationType\": \"header\"\n }\n ],\n \"status\": \"UNAUTHENTICATED\"\n }\n}\n", "exception": "Google\\Service\\Exception", "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 134, "trace": [ { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 107, "function": "decodeHttpResponse", "class": "Google\\Http\\REST", "type": "::" }, { "function": "doExecute", "class": "Google\\Http\\REST", "type": "::" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Task/Runner.php", "line": 187, "function": "call_user_func_array" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 66, "function": "run", "class": "Google\\Task\\Runner", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Client.php", "line": 922, "function": "execute", "class": "Google\\Http\\REST", "type": "::" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Service/Resource.php", "line": 238, "function": "execute", "class": "Google\\Client", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient-services/src/Gmail/Resource/UsersMessages.php", "line": 215, "function": "call", "class": "Google\\Service\\Resource", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/dacastro4/laravel-gmail/src/Traits/Replyable.php", "line": 301, "function": "send", "class": "Google\\Service\\Gmail\\Resource\\UsersMessages", "type": "->" }, { "file": "/var/www/wcbackend_prod/routes/api.php", "line": 155, "function": "reply", "class": "Dacastro4\\LaravelGmail\\Services\\Message\\Mail", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 205, "function": "{closure}", "class": "Illuminate\\Routing\\RouteFileRegistrar", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 179, "function": "runCallable", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 680, "function": "run", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 30, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php", "line": 41, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php", "line": 58, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 104, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 682, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 657, "function": "runRouteWithinStack", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 623, "function": "runRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 612, "function": "dispatchToRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 176, "function": "dispatch", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 30, "function": "Illuminate\\Foundation\\Http\\{closure}", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/barryvdh/laravel-cors/src/HandleCors.php", "line": 58, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Barryvdh\\Cors\\HandleCors", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/fideloper/proxy/src/TrustProxies.php", "line": 57, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Fideloper\\Proxy\\TrustProxies", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php", "line": 27, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php", "line": 62, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 104, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 151, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 116, "function": "sendRequestThroughRouter", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/var/www/wcbackend_prod/public/index.php", "line": 55, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" } ] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
$mail = LaravelGmail::setUserId($mailbox->mailbox->uuid)->message()->get($threadId); $bodyContent = "Hi reply 1 from " . $your_email_id . ". Date :" . Carbon\Carbon::now(); $mail->using($accessToken); $to = $mail->getFromEmail(); $toName = $mail->getFromName(); $from = $mail->getTo(); $mail->message($bodyContent); $mail->from($from[0]['email'], $from[0]['name']); $mail->to($to, $toName); $reply = $mail->reply(); $reply = $reply->load();
return error
{ "message": "{\n \"error\": {\n \"code\": 401,\n \"message\": \"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.\",\n \"errors\": [\n {\n \"message\": \"Invalid Credentials\",\n \"domain\": \"global\",\n \"reason\": \"authError\",\n \"location\": \"Authorization\",\n \"locationType\": \"header\"\n }\n ],\n \"status\": \"UNAUTHENTICATED\"\n }\n}\n", "exception": "Google\\Service\\Exception", "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 134, "trace": [ { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 107, "function": "decodeHttpResponse", "class": "Google\\Http\\REST", "type": "::" }, { "function": "doExecute", "class": "Google\\Http\\REST", "type": "::" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Task/Runner.php", "line": 187, "function": "call_user_func_array" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Http/REST.php", "line": 66, "function": "run", "class": "Google\\Task\\Runner", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Client.php", "line": 922, "function": "execute", "class": "Google\\Http\\REST", "type": "::" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient/src/Service/Resource.php", "line": 238, "function": "execute", "class": "Google\\Client", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/google/apiclient-services/src/Gmail/Resource/UsersMessages.php", "line": 215, "function": "call", "class": "Google\\Service\\Resource", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/dacastro4/laravel-gmail/src/Traits/Replyable.php", "line": 301, "function": "send", "class": "Google\\Service\\Gmail\\Resource\\UsersMessages", "type": "->" }, { "file": "/var/www/wcbackend_prod/routes/api.php", "line": 155, "function": "reply", "class": "Dacastro4\\LaravelGmail\\Services\\Message\\Mail", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 205, "function": "{closure}", "class": "Illuminate\\Routing\\RouteFileRegistrar", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 179, "function": "runCallable", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 680, "function": "run", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 30, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php", "line": 41, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php", "line": 58, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 104, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 682, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 657, "function": "runRouteWithinStack", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 623, "function": "runRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 612, "function": "dispatchToRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 176, "function": "dispatch", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 30, "function": "Illuminate\\Foundation\\Http\\{closure}", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/barryvdh/laravel-cors/src/HandleCors.php", "line": 58, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Barryvdh\\Cors\\HandleCors", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/fideloper/proxy/src/TrustProxies.php", "line": 57, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Fideloper\\Proxy\\TrustProxies", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php", "line": 27, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php", "line": 62, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 163, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 104, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 151, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/var/www/wcbackend_prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 116, "function": "sendRequestThroughRouter", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/var/www/wcbackend_prod/public/index.php", "line": 55, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" } ] }
The text was updated successfully, but these errors were encountered: