tabby-ai / tabby_flutter_inapp_sdk

MIT License
2 stars 14 forks source link

Error code 302 in TabbySDK.createSession #3

Closed saimish closed 1 year ago

saimish commented 2 years ago

I got two keys like pk_test_xxxxxxxxxxx and sk_testxxxxxxxx which one should I use as an API Key?

mohammmedsedky commented 1 year ago

sk_test

make sure the setup is like this TabbySDK().setup( withApiKey: 'sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // Put here your Api key environment: Environment.production, // == https://api.tabby.ai/ );

saimish commented 1 year ago

I have used this key too but server exception is thrown. When use pk_test key it says 401 unauthorized access. Do I also have to change merchant url in this tabbysdk example?

mohammmedsedky commented 1 year ago

please provide full code you write

kuznetsov-from-wonderland commented 1 year ago

Please use pk (public key)