All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| CreateCreator | Post /creators | |
| DiscordCallback | Get /sessions/discord/callback | |
| Gamba | Put /players/me/lootboxes/{lootBoxId}/open | |
| GetCreator | Get /creators/{slug} | |
| GetCreatorTransactions | Get /creators/{creatorSlug}/transactions | |
| GetCreators | Get /creators | |
| GetPlayer | Get /players/{username} | |
| GetPlayers | Get /players | |
| GetSelf | Get /players/me | |
| LinkDiscordTwitch | Post /sessions/discord/link | |
| PlaceOrder | Post /transactions | |
| TwitchCallback | Get /sessions/twitch/callback |
CreatorDto CreateCreator(ctx).Username(username).Ticker(ticker).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
username := "username_example" // string | (optional)
ticker := "ticker_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.CreateCreator(context.Background()).Username(username).Ticker(ticker).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.CreateCreator``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCreator`: CreatorDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.CreateCreator`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCreatorRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| ticker | string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DiscordTokenDto DiscordCallback(ctx).Code(code).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
code := "code_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.DiscordCallback(context.Background()).Code(code).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.DiscordCallback``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DiscordCallback`: DiscordTokenDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.DiscordCallback`: %v\n", resp)
}Other parameters are passed through a pointer to a apiDiscordCallbackRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| code | string |
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LootBoxResultDto Gamba(ctx, lootBoxId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
lootBoxId := int32(56) // int32 |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.Gamba(context.Background(), lootBoxId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.Gamba``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Gamba`: LootBoxResultDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.Gamba`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| lootBoxId | int32 |
Other parameters are passed through a pointer to a apiGambaRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreatorDto GetCreator(ctx, slug).Step(step).After(after).Execute()
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
slug := "slug_example" // string |
step := openapiclient.TimeStep("Minute") // TimeStep | (optional)
after := time.Now() // time.Time | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.GetCreator(context.Background(), slug).Step(step).After(after).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.GetCreator``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCreator`: CreatorDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.GetCreator`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| slug | string |
Other parameters are passed through a pointer to a apiGetCreatorRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
step | TimeStep | | after | time.Time | |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]PlayerTransactionDto GetCreatorTransactions(ctx, creatorSlug).Slug(slug).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
creatorSlug := "creatorSlug_example" // string |
slug := "slug_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.GetCreatorTransactions(context.Background(), creatorSlug).Slug(slug).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.GetCreatorTransactions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCreatorTransactions`: []PlayerTransactionDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.GetCreatorTransactions`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| creatorSlug | string |
Other parameters are passed through a pointer to a apiGetCreatorTransactionsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
slug | string | |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreatorPartialDtoPaginationDto GetCreators(ctx).Page(page).Limit(limit).Search(search).OrderBy(orderBy).OrderDir(orderDir).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
page := int32(56) // int32 | (optional) (default to 1)
limit := int32(56) // int32 | (optional) (default to 20)
search := "search_example" // string | (optional)
orderBy := openapiclient.CreatorOrderBy("Name") // CreatorOrderBy | (optional)
orderDir := openapiclient.OrderDirection("Ascending") // OrderDirection | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.GetCreators(context.Background()).Page(page).Limit(limit).Search(search).OrderBy(orderBy).OrderDir(orderDir).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.GetCreators``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCreators`: CreatorPartialDtoPaginationDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.GetCreators`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCreatorsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| page | int32 | [default to 1] | |
| limit | int32 | [default to 20] | |
| search | string | ||
| orderBy | CreatorOrderBy | ||
| orderDir | OrderDirection |
CreatorPartialDtoPaginationDto
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PlayerDto GetPlayer(ctx, username).Step(step).After(after).Execute()
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
username := "username_example" // string |
step := openapiclient.TimeStep("Minute") // TimeStep | (optional)
after := time.Now() // time.Time | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.GetPlayer(context.Background(), username).Step(step).After(after).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.GetPlayer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPlayer`: PlayerDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.GetPlayer`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiGetPlayerRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
step | TimeStep | | after | time.Time | |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PlayerDtoPaginationDto GetPlayers(ctx).Page(page).Limit(limit).Search(search).OrderBy(orderBy).OrderDir(orderDir).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
page := int32(56) // int32 | (optional) (default to 1)
limit := int32(56) // int32 | (optional) (default to 20)
search := "search_example" // string | (optional)
orderBy := openapiclient.PlayerOrderBy("Name") // PlayerOrderBy | (optional)
orderDir := openapiclient.OrderDirection("Ascending") // OrderDirection | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.GetPlayers(context.Background()).Page(page).Limit(limit).Search(search).OrderBy(orderBy).OrderDir(orderDir).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.GetPlayers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPlayers`: PlayerDtoPaginationDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.GetPlayers`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetPlayersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| page | int32 | [default to 1] | |
| limit | int32 | [default to 20] | |
| search | string | ||
| orderBy | PlayerOrderBy | ||
| orderDir | OrderDirection |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PlayerDto GetSelf(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.GetSelf(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.GetSelf``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSelf`: PlayerDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.GetSelf`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetSelfRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenDto LinkDiscordTwitch(ctx).LinkDiscordTwitchDto(linkDiscordTwitchDto).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
linkDiscordTwitchDto := *openapiclient.NewLinkDiscordTwitchDto("AccessToken_example", "TwitchId_example") // LinkDiscordTwitchDto | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.LinkDiscordTwitch(context.Background()).LinkDiscordTwitchDto(linkDiscordTwitchDto).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.LinkDiscordTwitch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LinkDiscordTwitch`: TokenDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.LinkDiscordTwitch`: %v\n", resp)
}Other parameters are passed through a pointer to a apiLinkDiscordTwitchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| linkDiscordTwitchDto | LinkDiscordTwitchDto |
No authorization required
- Content-Type: application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreatorTransactionDto PlaceOrder(ctx).CreateTransactionDto(createTransactionDto).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
createTransactionDto := *openapiclient.NewCreateTransactionDto("Creator_example", openapiclient.TransactionAction("Buy"), int32(123)) // CreateTransactionDto | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.PlaceOrder(context.Background()).CreateTransactionDto(createTransactionDto).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.PlaceOrder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PlaceOrder`: CreatorTransactionDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.PlaceOrder`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPlaceOrderRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| createTransactionDto | CreateTransactionDto |
No authorization required
- Content-Type: application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenDto TwitchCallback(ctx).Code(code).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ttxdev/gottx"
)
func main() {
code := "code_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TTXAPI.TwitchCallback(context.Background()).Code(code).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TTXAPI.TwitchCallback``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TwitchCallback`: TokenDto
fmt.Fprintf(os.Stdout, "Response from `TTXAPI.TwitchCallback`: %v\n", resp)
}Other parameters are passed through a pointer to a apiTwitchCallbackRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| code | string |
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]