Coder Social home page Coder Social logo

appToken Error about node-quickbase HOT 4 CLOSED

jtorrence1 avatar jtorrence1 commented on August 26, 2024
appToken Error

from node-quickbase.

Comments (4)

tflanagan avatar tflanagan commented on August 26, 2024

Quick Base's documentation is incomplete.

Please refer to the README for how to include an app token (it is commented out).

const quickbase = new QuickBase({
    realm: 'demo',
    appToken: '<app token>'
});

This is only required for "client-side" work (when using tickets), where you want to consume to currently logged in users session. Keep in mind you must call getTempToken first.

from node-quickbase.

jtorrence1 avatar jtorrence1 commented on August 26, 2024

Sorry,

I just meant that Quick Base doesn't actually require an AppToken for the "API_GetRoleInfo" call to succeed. Here's a cURL command that illustrates what I mean.

curl --location --request POST 'https://[example].quickbase.com/db/[dbid]?act=API_GetRoleInfo' \
--header 'Content-Type: application/xml' \
--data-raw '<qdbapi>
    <usertoken>[usertoken]</usertoken>
</qdbapi>'

from node-quickbase.

jtorrence1 avatar jtorrence1 commented on August 26, 2024

I think I see what you mean. Whenever you provide a cookie, Quick Base requires an App Token. That's a weird behavior.

from node-quickbase.

tflanagan avatar tflanagan commented on August 26, 2024

Hey @jtorrence1,

Correct, when you are using a user token you do not need an app token. However, if you are using a ticket, you must supply an app token if the Quick Base application is setup to require it.

Glad you were able to figure it out on your own.

from node-quickbase.

Related Issues (20)

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.