#mikael2811_connect-oauth-deauth-success

1 messages ยท Page 1 of 1 (latest)

rustic skiffBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1440040358313721966

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

humble wasp
#

HI ๐Ÿ‘‹

So you just want to confirm that the account you specified has been successfully disconnected, correct?

noble hemlock
#

Hi there. yes. I can show you a snippet from my code.

#

i'm getting some headers and bunch of keys that contains the connected acc_id

#

on $response

#

nothing like a status or something

#

similar

humble wasp
#

I'm still trying to load the docs but I'm pretty sure the status of the API response (e.g. 200) indicates success. If the disconnect attempt failed, you would get a 4XX response status

noble hemlock
#

ok, so just the status code is enough then

humble wasp
#

And we do return an error object when problems occur with the process.

#

This is similar with some Stripe.js methods that only return an error or null. The absence of the error is evidence of success.

noble hemlock
#

ok, got it

#

i'll use that code then

humble wasp
#

We display the error object here

noble hemlock
#

Thank you for your assistance

#

I was lost in the docs lmao

humble wasp
#

Totally easy

noble hemlock
#

That's all that i needed. Thank you for your help

humble wasp
#

And for some stuff like the OAuth approach, we don't even directly link to it from our nav. You gotta search

noble hemlock
#

Yea...

#

anyway

#

Have a great day or night, depends on your location ๐Ÿ™‚