Oauth in pixlet

I’m scratching my head on it (and suspect someone here figured it out but I couldn’t find the answer via search): how do I do an oauth2 call in pixlet

The use case: I’m trying to get information from my Awair sensor ( see Awair Home & OAuth Developer APIs ) on my Tidbyt. But first, I need to get past the oauth layer to get there.

Any ideas?

Hi @TNLNYC

Pixlet has a new schema field to help with OAuth2 flows:

You can see the example app code here:

I’ve also put together a PagerDuty application that uses OAuth2 in the community repo:

Hope this helps! We are available on the discord in the developers channel if you want to discuss some specific challenges you are facing.