Quickbase API(Sign in required)

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered

I set a different server(different IP) and i'm using PHP SDK with the API to connect to QuickBase. On the original server it works fine. Now i'm attempting to connect to mydomain.quickbase.com from a different IP.  

The QuickBase connection fails it returns to me the following error:

sign in required.

How can I automate this process? Do i need to change something in quickbase?

Do I need to run the authenticate method in the SDK?

Photo of Eddie

Eddie

  • 0 Points

Posted 4 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,224 Points 20k badge 2x thumb
You need a ticket for each connection to QuickBase and the only way to get a ticket is to authenticate through API_Authenticate. I don't know off the top of my head if QuickBase imposes other criteria on the connection but it would be a violation of the terms of service to share the ticket around so you have to call API_Authenticate and get a new ticket for every connection. No scalping tickets.
Photo of Eddie

Eddie

  • 0 Points
I'm not sure how tickets work could you explain a little more, do I simply have to create a different admin user for each API connection?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,224 Points 20k badge 2x thumb
Before you can make calls the to QuickBase API you have to use API_Authenticate and obtain a ticket. The ticket must be sent back to QuickBase on each subsequent API call to "prove" you are authenticated. The same user can be logged into multiple connections and each session must the same ticket  that was obtained during the Authentication process.

FWIW, you never have to worry about tickets if you are using a browser as the browser will take care of saving the ticket after login as a HTTP only cookie and send it back to QuickBase on every subsequent HTTP request. But when you are using a language like Ruby, Python or PHP you have to manually mange the ticket as there is no similar handling of the ticket as is done in the browser.