Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIC-904] Fetch pending invites #31

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

itailevi98
Copy link

Background

A new request has been added, FetchPendingInvites, that let's one fetch the pending org invites, which can be filtered by org ID.

Example Usage

import (
	...
	"github.com/propelauth/propelauth-go/pkg/models"
)
apiKey := "API KEY"
authUrl := "AUTH URL"

client, err := propelauth.InitBaseAuth(authUrl, apiKey, nil)
if err != nil {
	panic(err)
}

orgID := new(uuid.UUID)
*orgID = uuid.MustParse("<ORG ID>")

res, err := client.FetchPendingInvites(models.FetchPendingInvitesParams{
	OrgID: orgID,
})
if err != nil {
	panic(err)
}

Copy link
Contributor

@mrmauer mrmauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@itailevi98 itailevi98 force-pushed the TIC-904/Fetch-pending-invites branch from 77a8c1d to 2a48018 Compare June 17, 2024 20:46
@itailevi98 itailevi98 merged commit bf8e635 into main Jun 17, 2024
9 checks passed
@itailevi98 itailevi98 deleted the TIC-904/Fetch-pending-invites branch June 17, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants