Code Monkey home page Code Monkey logo

pinterest-python-generated-api-client's Issues

Error when running the code

I'm getting this error:

Exception when calling AdAccountsApi->ad_account_analytics: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Connection': 'keep-alive', 'Content-Length': '64', 'content-type': 'application/json', 'x-content-type-options': 'nosniff', 'x-envoy-upstream-service-time': '0', 'cache-control': 'no-cache, no-store, must-revalidate', 'age': '0', 'set-cookie': '_ir=0; Max-Age=1800; HttpOnly; Path=/; Secure', 'x-pinterest-rid': '1337919202421304', 'Date': 'Tue, 22 Aug 2023 20:50:58 GMT', 'X-CDN': 'fastly', 'alt-svc': 'h3=":443";ma=600', 'Pinterest-Generated-By': 'tpp-api-canary-0a019891'})
HTTP response body: {"code":2,"message":"Authentication failed.","status":"failure"}

I have created the API and it's already Trial access active, so I generate the token for the sandbox environment, which provides access to all these scopes:
https://developers.pinterest.com/docs/getting-started/scopes/#OpenAPI%20security%20definitions

So, I don't know what's the problem. By the way I have Analyst access to the ads account.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.