pipedrive / client-php

Pipedrive API client for PHP
MIT License
49 stars 57 forks source link

Scope and URL mismatch #14

Closed felipemarques closed 4 years ago

felipemarques commented 4 years ago

Hey guys,

Please help me!

I give this error:

Unirest\Response {#1172 +code: 403 +raw_body: "{"success":false,"error":"Scope and URL mismatch","errorCode":403}" +body: {#1181 +"success": false +"error": "Scope and URL mismatch" +"errorCode": 403 } +headers: array:21 [ 0 => "HTTP/1.1 403 Forbidden" "Date" => "Thu, 02 Jul 2020 18:00:31 GMT" "Content-Type" => "application/json" "Transfer-Encoding" => "chunked" "Connection" => "keep-alive" "Set-Cookie" => "__cfduid=d76208080a8f8cda75657cdf957e5528c1593712830; expires=Sat, 01-Aug-20 18:00:30 GMT; path=/; domain=.pipedrive.com; HttpOnly; SameSite=Lax" "x-correlation-id" => "4fcd6f7f-3b89-4568-891f-6f45382685fa" "badi" => "Routing: us-east-1=>us-east-1; Version: c2a6; Host: bari;" "Cache-Control" => "no-cache" "Access-Control-Expose-Headers" => "X-RateLimit-Remaining, X-RateLimit-Limit, X-RateLimit-Reset" "pdtrusted-wgw-real-user-ip" => "18.230.84.218" "X-XSS-Protection" => "1; mode=block" "X-Content-Type-Options" => "nosniff" "Strict-Transport-Security" => "max-age=31536000; includeSubDomains" "Content-Encoding" => "gzip" "CF-Cache-Status" => "DYNAMIC" "cf-request-id" => "03b24901c90000d01cda0ac200000001" "Expect-CT" => "max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"" "Server" => "cloudflare" "CF-RAY" => "5aca44494bf9d01c-GRU" "alt-svc" => "h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400" ]}

But in my account, i have permission on Call Logs, when i create new App. Why this error ?

The method of the authentication is: OAuth

Request:

Method: POST URL: https://api.pipedrive.com/v1/callLogs/7441/recordings Parameters: ^ array:11 [ "user_id" => "11419111" "activity_id" => null "subject" => "asdfasdfasdfasdfadsf" "from_phone_number" => null "to_phone_number" => "41992512151" "outcome" => "connected" "start_time" => "2020-07-02 19:33:40" "end_time" => "2020-07-02 19:33:40" "deal_id" => null "person_id" => "9865" "org_id" => null ]

felipemarques commented 4 years ago

Sorry guys... this is my error .. my fault... i passed wrong parameters on route API https://api.pipedrive.com/v1/callLogs/7441/recordings and get the above error...

For help somebody that have the same error, review your parameters and try again.

Thanks to Helio on PIpedrive that helps me: https://sharing.pipedrive.com/hvOebT