func (o *OrgInviteClient) Get(ctx context.Context, inviteID *identity.ID) (*envelope.Unsigned, error) {
	if inviteID == nil {
		return nil, errors.New("an inviteID must be provided")
	}

	path := "/org-invites/" + inviteID.String()
	req, err := o.client.NewRequest("GET", path, nil, nil)
	if err != nil {
		log.Printf("Error building GET /org-invites/:id request: %s", err)
		return nil, err
	}

	invite := envelope.Unsigned{}
	_, err = o.client.Do(ctx, req, &invite)
	if err != nil {
		log.Printf("Error performing GET /org-invites/:id request: %s", err)
		return nil, err
	}

	return &invite, nil
}
// Get returns a specific Org Invite based on it's ID
Get returns a specific Org Invite based on it's ID
// Get returns a specific Org Invite based on it ' s ID
func (o *OrgInviteClient) Get(ctx context.Context, inviteID *identity.ID) (*envelope.Unsigned, error) {
	if inviteID == nil {
		return nil, errors.New("an inviteID must be provided")
	}
	path := "/org-invites/" + inviteID.String()
	req, err := o.client.NewRequest("GET", path, nil, nil)
	if err != nil {
		log.Printf("Error building GET /org-invites/:id request: %s", err)
		return nil, err
	}
	invite := envelope.Unsigned{}
	_, err = o.client.Do(ctx, req, &invite)
	if err != nil {
		log.Printf("Error performing GET /org-invites/:id request: %s", err)
		return nil, err
	}
	return &invite, nil
}
func ( o * OrgInviteClient ) Get ( ctx context . Context , inviteID * identity . ID ) ( * envelope . Unsigned , error ) { if inviteID == nil { return nil , errors . New ( " " ) } path := " " + inviteID . String ( ) req , err := o . client . NewRequest ( " " , path , nil , nil ) if err != nil { log . Printf ( " " , err ) return nil , err } invite := envelope . Unsigned { } _ , err = o . client . Do ( ctx , req , & invite ) if err != nil { log . Printf ( " " , err ) return nil , err } return & invite , nil }
Get returns a specific Org Invite based on it's ID
Get returns a specific Org Invite based on it ' s ID