BirdSdkApi
Last updated
Was this helpful?
Was this helpful?
Bird.api.fetch('contacts/me');
// the request will be sent to `/workspaces/{workspaceId}/contacts/me`fetch<Fn>(callback: Fn, options?: undefined): ReturnType<Fn>Bird.api.fetch((workspaceId, { baseUrl, authToken }) => {
return fetch(`${baseUrl}/workspaces/${workspaceId}/contacts/me`, {
headers: {
Authorization: `Bearer ${authToken}`,
},
});
});