Test Auth

Token Function

Array
(
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
        (
            [data:protected] => Array
                (
                    [date] => Thu, 26 May 2022 08:03:08 GMT
                    [content-type] => application/json; charset=utf-8
                    [server] => nginx/1.10.3 (Ubuntu)
                    [x-frame-options] => SAMEORIGIN
                    [x-xss-protection] => 1; mode=block
                    [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=gWVxa%2FaXEsxK%2Flh7txk02pqHJL7z%2BQAFBuyWTY6LAsD4YIBd1Hec692YsYViUCV2REQmJqi%2BsI5cCy7rQcLIOGCYEtX1BK5DLLRrzw7l2gtftaOEL6JuKU5tfHtgRNvmSQPH%2BANNHkmOVcMQhA1Mo4dYNDgSNEWDa3jW5jPZm6tQf%2BjOG3mQFfa%2FGTuMceV1TDg%2FQkzGyYkCtiE0WAXwti1zzW3zadSgt1AimY0ELkGeJEpWIpzxHuSQPTfMKosxA1CRGlBClT1jXVRD--l0gsRpJf9Mvv9l3A--rwxIznFlhA58iVvC0ImaGQ%3D%3D; domain=.companycam.com; path=/; expires=Thu, 09 Jun 2022 08:03:08 GMT; secure; HttpOnly
                    [x-request-id] => 8aacc5bd-484b-4671-a3ae-7e6260a5caa8
                    [x-runtime] => 0.017648
                    [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] => gWVxa/aXEsxK/lh7txk02pqHJL7z+QAFBuyWTY6LAsD4YIBd1Hec692YsYViUCV2REQmJqi+sI5cCy7rQcLIOGCYEtX1BK5DLLRrzw7l2gtftaOEL6JuKU5tfHtgRNvmSQPH+ANNHkmOVcMQhA1Mo4dYNDgSNEWDa3jW5jPZm6tQf+jOG3mQFfa/GTuMceV1TDg/QkzGyYkCtiE0WAXwti1zzW3zadSgt1AimY0ELkGeJEpWIpzxHuSQPTfMKosxA1CRGlBClT1jXVRD--l0gsRpJf9Mvv9l3A--rwxIznFlhA58iVvC0ImaGQ==
                    [expires] => 1654761788
                    [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: Thu, 26 May 2022 08:03:08 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Server: nginx/1.10.3 (Ubuntu)
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
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=gWVxa%2FaXEsxK%2Flh7txk02pqHJL7z%2BQAFBuyWTY6LAsD4YIBd1Hec692YsYViUCV2REQmJqi%2BsI5cCy7rQcLIOGCYEtX1BK5DLLRrzw7l2gtftaOEL6JuKU5tfHtgRNvmSQPH%2BANNHkmOVcMQhA1Mo4dYNDgSNEWDa3jW5jPZm6tQf%2BjOG3mQFfa%2FGTuMceV1TDg%2FQkzGyYkCtiE0WAXwti1zzW3zadSgt1AimY0ELkGeJEpWIpzxHuSQPTfMKosxA1CRGlBClT1jXVRD--l0gsRpJf9Mvv9l3A--rwxIznFlhA58iVvC0ImaGQ%3D%3D; domain=.companycam.com; path=/; expires=Thu, 09 Jun 2022 08:03:08 GMT; secure; HttpOnly
X-Request-Id: 8aacc5bd-484b-4671-a3ae-7e6260a5caa8
X-Runtime: 0.017648
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] => Thu, 26 May 2022 08:03:08 GMT
                                        )

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

                                    [server] => Array
                                        (
                                            [0] => nginx/1.10.3 (Ubuntu)
                                        )

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

                                    [x-xss-protection] => Array
                                        (
                                            [0] => 1; mode=block
                                        )

                                    [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=gWVxa%2FaXEsxK%2Flh7txk02pqHJL7z%2BQAFBuyWTY6LAsD4YIBd1Hec692YsYViUCV2REQmJqi%2BsI5cCy7rQcLIOGCYEtX1BK5DLLRrzw7l2gtftaOEL6JuKU5tfHtgRNvmSQPH%2BANNHkmOVcMQhA1Mo4dYNDgSNEWDa3jW5jPZm6tQf%2BjOG3mQFfa%2FGTuMceV1TDg%2FQkzGyYkCtiE0WAXwti1zzW3zadSgt1AimY0ELkGeJEpWIpzxHuSQPTfMKosxA1CRGlBClT1jXVRD--l0gsRpJf9Mvv9l3A--rwxIznFlhA58iVvC0ImaGQ%3D%3D; domain=.companycam.com; path=/; expires=Thu, 09 Jun 2022 08:03:08 GMT; secure; HttpOnly
                                        )

                                    [x-request-id] => Array
                                        (
                                            [0] => 8aacc5bd-484b-4671-a3ae-7e6260a5caa8
                                        )

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

                                    [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] => gWVxa%2FaXEsxK%2Flh7txk02pqHJL7z%2BQAFBuyWTY6LAsD4YIBd1Hec692YsYViUCV2REQmJqi%2BsI5cCy7rQcLIOGCYEtX1BK5DLLRrzw7l2gtftaOEL6JuKU5tfHtgRNvmSQPH%2BANNHkmOVcMQhA1Mo4dYNDgSNEWDa3jW5jPZm6tQf%2BjOG3mQFfa%2FGTuMceV1TDg%2FQkzGyYkCtiE0WAXwti1zzW3zadSgt1AimY0ELkGeJEpWIpzxHuSQPTfMKosxA1CRGlBClT1jXVRD--l0gsRpJf9Mvv9l3A--rwxIznFlhA58iVvC0ImaGQ%3D%3D
                                            [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                (
                                                    [data:protected] => Array
                                                        (
                                                            [domain] => companycam.com
                                                            [path] => /
                                                            [expires] => 1654761788
                                                            [secure] => 1
                                                            [httponly] => 1
                                                        )

                                                )

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

                                            [reference_time] => 1653552188
                                        )

                                )

                        )

                )

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

)