Sign In

Token Function

Array
(
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
        (
            [data:protected] => Array
                (
                    [date] => Tue, 24 May 2022 10:06:57 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=RSI27T6UKP56KzaKO5jLOi%2FCl7swQgmJqINIYf7R8O9G%2FZZ9SFP%2FCYGv1tew%2BVo79QbeItujKvsz2fH52UfGINJZ1Qzl1rUqw2aTxF2Hw%2BlpUU%2FofWVGOWuMWVkQqJWvM1eRUpM0IBzku51POm8512VDqjW%2BD7f7Ve4o7dJVDnqAHHyQ45OaPzNRQ00EL1nrbLmpSSoc4otRQrP6QjuVQyh%2F3Y%2Fi%2FsYCuZ1Mxi9J4FfD%2B5cv%2F2xv0pksR1Zos22LyqCR9R5gsHA%2F9NCR--DfuvgV%2B0X4y7tS8E--NYk7F3Tri%2FWp%2Bhs%2BUFASng%3D%3D; domain=.companycam.com; path=/; expires=Tue, 07 Jun 2022 10:06:57 GMT; secure; HttpOnly
                    [x-request-id] => 808918b5-716e-4a14-b093-4d5260a54932
                    [x-runtime] => 0.028318
                    [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] => RSI27T6UKP56KzaKO5jLOi/Cl7swQgmJqINIYf7R8O9G/ZZ9SFP/CYGv1tew+Vo79QbeItujKvsz2fH52UfGINJZ1Qzl1rUqw2aTxF2Hw+lpUU/ofWVGOWuMWVkQqJWvM1eRUpM0IBzku51POm8512VDqjW+D7f7Ve4o7dJVDnqAHHyQ45OaPzNRQ00EL1nrbLmpSSoc4otRQrP6QjuVQyh/3Y/i/sYCuZ1Mxi9J4FfD+5cv/2xv0pksR1Zos22LyqCR9R5gsHA/9NCR--DfuvgV+0X4y7tS8E--NYk7F3Tri/Wp+hs+UFASng==
                    [expires] => 1654596417
                    [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: Tue, 24 May 2022 10:06:57 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=RSI27T6UKP56KzaKO5jLOi%2FCl7swQgmJqINIYf7R8O9G%2FZZ9SFP%2FCYGv1tew%2BVo79QbeItujKvsz2fH52UfGINJZ1Qzl1rUqw2aTxF2Hw%2BlpUU%2FofWVGOWuMWVkQqJWvM1eRUpM0IBzku51POm8512VDqjW%2BD7f7Ve4o7dJVDnqAHHyQ45OaPzNRQ00EL1nrbLmpSSoc4otRQrP6QjuVQyh%2F3Y%2Fi%2FsYCuZ1Mxi9J4FfD%2B5cv%2F2xv0pksR1Zos22LyqCR9R5gsHA%2F9NCR--DfuvgV%2B0X4y7tS8E--NYk7F3Tri%2FWp%2Bhs%2BUFASng%3D%3D; domain=.companycam.com; path=/; expires=Tue, 07 Jun 2022 10:06:57 GMT; secure; HttpOnly
X-Request-Id: 808918b5-716e-4a14-b093-4d5260a54932
X-Runtime: 0.028318
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] => Tue, 24 May 2022 10:06:57 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=RSI27T6UKP56KzaKO5jLOi%2FCl7swQgmJqINIYf7R8O9G%2FZZ9SFP%2FCYGv1tew%2BVo79QbeItujKvsz2fH52UfGINJZ1Qzl1rUqw2aTxF2Hw%2BlpUU%2FofWVGOWuMWVkQqJWvM1eRUpM0IBzku51POm8512VDqjW%2BD7f7Ve4o7dJVDnqAHHyQ45OaPzNRQ00EL1nrbLmpSSoc4otRQrP6QjuVQyh%2F3Y%2Fi%2FsYCuZ1Mxi9J4FfD%2B5cv%2F2xv0pksR1Zos22LyqCR9R5gsHA%2F9NCR--DfuvgV%2B0X4y7tS8E--NYk7F3Tri%2FWp%2Bhs%2BUFASng%3D%3D; domain=.companycam.com; path=/; expires=Tue, 07 Jun 2022 10:06:57 GMT; secure; HttpOnly
                                        )

                                    [x-request-id] => Array
                                        (
                                            [0] => 808918b5-716e-4a14-b093-4d5260a54932
                                        )

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

                                    [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] => RSI27T6UKP56KzaKO5jLOi%2FCl7swQgmJqINIYf7R8O9G%2FZZ9SFP%2FCYGv1tew%2BVo79QbeItujKvsz2fH52UfGINJZ1Qzl1rUqw2aTxF2Hw%2BlpUU%2FofWVGOWuMWVkQqJWvM1eRUpM0IBzku51POm8512VDqjW%2BD7f7Ve4o7dJVDnqAHHyQ45OaPzNRQ00EL1nrbLmpSSoc4otRQrP6QjuVQyh%2F3Y%2Fi%2FsYCuZ1Mxi9J4FfD%2B5cv%2F2xv0pksR1Zos22LyqCR9R5gsHA%2F9NCR--DfuvgV%2B0X4y7tS8E--NYk7F3Tri%2FWp%2Bhs%2BUFASng%3D%3D
                                            [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                (
                                                    [data:protected] => Array
                                                        (
                                                            [domain] => companycam.com
                                                            [path] => /
                                                            [expires] => 1654596417
                                                            [secure] => 1
                                                            [httponly] => 1
                                                        )

                                                )

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

                                            [reference_time] => 1653386817
                                        )

                                )

                        )

                )

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

)