Test Auth

Token Function

Array
(
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
        (
            [data:protected] => Array
                (
                    [date] => Wed, 01 Feb 2023 19:03:38 GMT
                    [content-type] => application/json; charset=utf-8
                    [server] => nginx
                    [x-frame-options] => SAMEORIGIN
                    [x-xss-protection] => 0
                    [x-content-type-options] => nosniff
                    [x-download-options] => noopen
                    [x-permitted-cross-domain-policies] => none
                    [referrer-policy] => strict-origin-when-cross-origin
                    [cache-control] => no-store
                    [pragma] => no-cache
                    [www-authenticate] => Bearer realm="Doorkeeper", error="invalid_request", error_description="Missing required parameter: grant_type."
                    [set-cookie] => _production_companycam_session=cWlGyi7wMzyhUEVuAqp4z7O2p3ek4WMyQi2oPRZ%2BWWR%2BH8ln4pmUdngQtlPL7w8TVaeLw6d2Yz941tBhwFSSGoLJC16o5H%2FqpHkRlNk3nIi4yf%2BpHRmZ8FwRQ72xTj4z%2BDEzh1HQnEp7TPuRaG4JoohcAlzhorZzE4ZJLtF6FpPDeM4XwSXWo8yEzTIRsTqj0cydE508MAjLp5BdCoRklekZjKkm7alvCTwduAd5eGB20%2FsNaJjiSdJfcrZZO926lgEiI33JL%2F%2BhJ5r%2B--zmUZVG%2BXXC7VBdHT--dz0XNZVIs1JImH2Fpvd5Xg%3D%3D; domain=.companycam.com; path=/; expires=Wed, 15 Feb 2023 19:03:38 GMT; secure; HttpOnly; SameSite=Lax
                    [x-request-id] => 2dd04678-7c51-4535-99ad-557a7eee9123
                    [x-runtime] => 0.014969
                    [strict-transport-security] => max-age=63072000; includeSubDomains
                    [vary] => Origin
                    [x-rack-cors] => miss; no-origin
                )

        )

    [body] => {"error":"invalid_request","error_description":"Missing required parameter: grant_type."}
    [response] => Array
        (
            [code] => 400
            [message] => Bad Request
        )

    [cookies] => Array
        (
            [0] => WP_Http_Cookie Object
                (
                    [name] => _production_companycam_session
                    [value] => cWlGyi7wMzyhUEVuAqp4z7O2p3ek4WMyQi2oPRZ+WWR+H8ln4pmUdngQtlPL7w8TVaeLw6d2Yz941tBhwFSSGoLJC16o5H/qpHkRlNk3nIi4yf+pHRmZ8FwRQ72xTj4z+DEzh1HQnEp7TPuRaG4JoohcAlzhorZzE4ZJLtF6FpPDeM4XwSXWo8yEzTIRsTqj0cydE508MAjLp5BdCoRklekZjKkm7alvCTwduAd5eGB20/sNaJjiSdJfcrZZO926lgEiI33JL/+hJ5r+--zmUZVG+XXC7VBdHT--dz0XNZVIs1JImH2Fpvd5Xg==
                    [expires] => 1676487818
                    [path] => /
                    [domain] => companycam.com
                    [port] => 
                    [host_only] => 
                )

        )

    [filename] => 
    [http_response] => WP_HTTP_Requests_Response Object
        (
            [response:protected] => Requests_Response Object
                (
                    [body] => {"error":"invalid_request","error_description":"Missing required parameter: grant_type."}
                    [raw] => HTTP/1.1 400 Bad Request
Date: Wed, 01 Feb 2023 19:03:38 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Server: nginx
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Cache-Control: no-store
Pragma: no-cache
WWW-Authenticate: Bearer realm="Doorkeeper", error="invalid_request", error_description="Missing required parameter: grant_type."
Set-Cookie: _production_companycam_session=cWlGyi7wMzyhUEVuAqp4z7O2p3ek4WMyQi2oPRZ%2BWWR%2BH8ln4pmUdngQtlPL7w8TVaeLw6d2Yz941tBhwFSSGoLJC16o5H%2FqpHkRlNk3nIi4yf%2BpHRmZ8FwRQ72xTj4z%2BDEzh1HQnEp7TPuRaG4JoohcAlzhorZzE4ZJLtF6FpPDeM4XwSXWo8yEzTIRsTqj0cydE508MAjLp5BdCoRklekZjKkm7alvCTwduAd5eGB20%2FsNaJjiSdJfcrZZO926lgEiI33JL%2F%2BhJ5r%2B--zmUZVG%2BXXC7VBdHT--dz0XNZVIs1JImH2Fpvd5Xg%3D%3D; domain=.companycam.com; path=/; expires=Wed, 15 Feb 2023 19:03:38 GMT; secure; HttpOnly; SameSite=Lax
X-Request-Id: 2dd04678-7c51-4535-99ad-557a7eee9123
X-Runtime: 0.014969
Strict-Transport-Security: max-age=63072000; includeSubDomains
Vary: Origin
X-Rack-CORS: miss; no-origin

{"error":"invalid_request","error_description":"Missing required parameter: grant_type."}
                    [headers] => Requests_Response_Headers Object
                        (
                            [data:protected] => Array
                                (
                                    [date] => Array
                                        (
                                            [0] => Wed, 01 Feb 2023 19:03:38 GMT
                                        )

                                    [content-type] => Array
                                        (
                                            [0] => application/json; charset=utf-8
                                        )

                                    [server] => Array
                                        (
                                            [0] => nginx
                                        )

                                    [x-frame-options] => Array
                                        (
                                            [0] => SAMEORIGIN
                                        )

                                    [x-xss-protection] => Array
                                        (
                                            [0] => 0
                                        )

                                    [x-content-type-options] => Array
                                        (
                                            [0] => nosniff
                                        )

                                    [x-download-options] => Array
                                        (
                                            [0] => noopen
                                        )

                                    [x-permitted-cross-domain-policies] => Array
                                        (
                                            [0] => none
                                        )

                                    [referrer-policy] => Array
                                        (
                                            [0] => strict-origin-when-cross-origin
                                        )

                                    [cache-control] => Array
                                        (
                                            [0] => no-store
                                        )

                                    [pragma] => Array
                                        (
                                            [0] => no-cache
                                        )

                                    [www-authenticate] => Array
                                        (
                                            [0] => Bearer realm="Doorkeeper", error="invalid_request", error_description="Missing required parameter: grant_type."
                                        )

                                    [set-cookie] => Array
                                        (
                                            [0] => _production_companycam_session=cWlGyi7wMzyhUEVuAqp4z7O2p3ek4WMyQi2oPRZ%2BWWR%2BH8ln4pmUdngQtlPL7w8TVaeLw6d2Yz941tBhwFSSGoLJC16o5H%2FqpHkRlNk3nIi4yf%2BpHRmZ8FwRQ72xTj4z%2BDEzh1HQnEp7TPuRaG4JoohcAlzhorZzE4ZJLtF6FpPDeM4XwSXWo8yEzTIRsTqj0cydE508MAjLp5BdCoRklekZjKkm7alvCTwduAd5eGB20%2FsNaJjiSdJfcrZZO926lgEiI33JL%2F%2BhJ5r%2B--zmUZVG%2BXXC7VBdHT--dz0XNZVIs1JImH2Fpvd5Xg%3D%3D; domain=.companycam.com; path=/; expires=Wed, 15 Feb 2023 19:03:38 GMT; secure; HttpOnly; SameSite=Lax
                                        )

                                    [x-request-id] => Array
                                        (
                                            [0] => 2dd04678-7c51-4535-99ad-557a7eee9123
                                        )

                                    [x-runtime] => Array
                                        (
                                            [0] => 0.014969
                                        )

                                    [strict-transport-security] => Array
                                        (
                                            [0] => max-age=63072000; includeSubDomains
                                        )

                                    [vary] => Array
                                        (
                                            [0] => Origin
                                        )

                                    [x-rack-cors] => Array
                                        (
                                            [0] => miss; no-origin
                                        )

                                )

                        )

                    [status_code] => 400
                    [protocol_version] => 1.1
                    [success] => 
                    [redirects] => 0
                    [url] => https://app.companycam.com/oauth/token
                    [history] => Array
                        (
                        )

                    [cookies] => Requests_Cookie_Jar Object
                        (
                            [cookies:protected] => Array
                                (
                                    [_production_companycam_session] => Requests_Cookie Object
                                        (
                                            [name] => _production_companycam_session
                                            [value] => cWlGyi7wMzyhUEVuAqp4z7O2p3ek4WMyQi2oPRZ%2BWWR%2BH8ln4pmUdngQtlPL7w8TVaeLw6d2Yz941tBhwFSSGoLJC16o5H%2FqpHkRlNk3nIi4yf%2BpHRmZ8FwRQ72xTj4z%2BDEzh1HQnEp7TPuRaG4JoohcAlzhorZzE4ZJLtF6FpPDeM4XwSXWo8yEzTIRsTqj0cydE508MAjLp5BdCoRklekZjKkm7alvCTwduAd5eGB20%2FsNaJjiSdJfcrZZO926lgEiI33JL%2F%2BhJ5r%2B--zmUZVG%2BXXC7VBdHT--dz0XNZVIs1JImH2Fpvd5Xg%3D%3D
                                            [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                (
                                                    [data:protected] => Array
                                                        (
                                                            [domain] => companycam.com
                                                            [path] => /
                                                            [expires] => 1676487818
                                                            [secure] => 1
                                                            [httponly] => 1
                                                            [samesite] => Lax
                                                        )

                                                )

                                            [flags] => Array
                                                (
                                                    [creation] => 1675278218
                                                    [last-access] => 1675278218
                                                    [persistent] => 
                                                    [host-only] => 
                                                )

                                            [reference_time] => 1675278218
                                        )

                                )

                        )

                )

            [filename:protected] => 
            [data] => 
            [headers] => 
            [status] => 
        )

)