4.1 KiB
4.1 KiB
\TransactionsAPI
All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
Transactions | Get /api/v1/transactions | View transaction info |
Transactions
Transactions(ctx).LeagueId(leagueId).SportId(sportId).TeamId(teamId).PlayerId(playerId).Date(date).StartDate(startDate).EndDate(endDate).TransactionIds(transactionIds).TransactionTypes(transactionTypes).DivisionIds(divisionIds).Order(order).Limit(limit).Fields(fields).Execute()
View transaction info
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "//"
)
func main() {
leagueId := TODO // interface{} | Comma delimited list of Unique league identifiers (optional)
sportId := TODO // interface{} | Comma delimited list of top level organizations of a sport (optional)
teamId := TODO // interface{} | Comma delimited list of Unique Team identifiers (optional)
playerId := TODO // interface{} | A unique identifier for a player (optional)
date := TODO // interface{} | Date of Game. Format: YYYY-MM-DD (optional)
startDate := TODO // interface{} | Start date for range of data (must be used with end date). Format: MM/DD/YYYY (optional)
endDate := TODO // interface{} | End date for range of data (must be used with start date). Format: MM/DD/YYYY (optional)
transactionIds := TODO // interface{} | (optional)
transactionTypes := TODO // interface{} | (optional)
divisionIds := TODO // interface{} | (optional)
order := TODO // interface{} | (optional)
limit := TODO // interface{} | (optional)
fields := TODO // interface{} | Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.TransactionsAPI.Transactions(context.Background()).LeagueId(leagueId).SportId(sportId).TeamId(teamId).PlayerId(playerId).Date(date).StartDate(startDate).EndDate(endDate).TransactionIds(transactionIds).TransactionTypes(transactionTypes).DivisionIds(divisionIds).Order(order).Limit(limit).Fields(fields).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TransactionsAPI.Transactions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiTransactionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
leagueId | interface{} | Comma delimited list of Unique league identifiers | |
sportId | interface{} | Comma delimited list of top level organizations of a sport | |
teamId | interface{} | Comma delimited list of Unique Team identifiers | |
playerId | interface{} | A unique identifier for a player | |
date | interface{} | Date of Game. Format: YYYY-MM-DD | |
startDate | interface{} | Start date for range of data (must be used with end date). Format: MM/DD/YYYY | |
endDate | interface{} | End date for range of data (must be used with start date). Format: MM/DD/YYYY | |
transactionIds | interface{} | ||
transactionTypes | interface{} | ||
divisionIds | interface{} | ||
order | interface{} | ||
limit | interface{} | ||
fields | interface{} | Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute |
Return type
(empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]