useshortcut / shortcut-client-js

The official JavaScript client library for the Shortcut (formerly Clubhouse) REST API.
https://useshortcut.github.io/shortcut-client-js/
133 stars 31 forks source link

How to get the org-public-id needed for Get/List Member? #130

Open ben-simmons-dt opened 3 years ago

ben-simmons-dt commented 3 years ago

To get a Member, the API requires an org-public-id parameter: (https://shortcut.com/api/rest/v3#Get-Member).

However, I don't see anywhere in the API where an org ID is returned, and I'm not seeing where to get that ID from within the shortcut webapp (app.shortcut.com).

Any help would be appreciated!

StephenMP commented 1 year ago

@ben-simmons-dt

I know this is really old, but if anyone else stumbles upon this, you don't have to provide the org-public-id. You can just provide {}.

const member = await client.getMember(memberId, {})