All URIs are relative to https://api.qovery.com
Method | HTTP request | Description |
---|---|---|
GetAccountReferral | Get /account/referral | Get your referral information |
PostAccountRewardClaim | Post /account/rewardClaim | Claim a reward |
Referral GetAccountReferral(ctx).Execute()
Get your referral information
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ReferralRewardsAPI.GetAccountReferral(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReferralRewardsAPI.GetAccountReferral``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAccountReferral`: Referral
fmt.Fprintf(os.Stdout, "Response from `ReferralRewardsAPI.GetAccountReferral`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetAccountReferralRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostAccountRewardClaim(ctx).RewardClaim(rewardClaim).Execute()
Claim a reward
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
rewardClaim := *openapiclient.NewRewardClaim() // RewardClaim | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ReferralRewardsAPI.PostAccountRewardClaim(context.Background()).RewardClaim(rewardClaim).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReferralRewardsAPI.PostAccountRewardClaim``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiPostAccountRewardClaimRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
rewardClaim | RewardClaim |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]