All URIs are relative to https://api.gateio.ws/api/v4
| Method | HTTP request | Description |
|---|---|---|
| GetMyActivityEntry | GET /rewards/activity/my-activity-entry | My activity entry |
| ListActivities | GET /rewards/activity/activity-list | Recommended activity list |
| ListActivityTypes | GET /rewards/activity/activity-type | Activity type list |
GetMyActivityEntryResponse GetMyActivityEntry ()
My activity entry
Query user's Activity Center entry information, including activity icon and redirect link
usingSystem.Collections.Generic;usingSystem.Diagnostics;usingIo.Gate.GateApi.Api;usingIo.Gate.GateApi.Client;usingIo.Gate.GateApi.Model;namespaceExample{publicclassGetMyActivityEntryExample{publicstaticvoidMain(){Configurationconfig=newConfiguration();config.BasePath="https://api.gateio.ws/api/v4";config.SetGateApiV4KeyPair("YOUR_API_KEY","YOUR_API_SECRET");varapiInstance=newActivityApi(config);try{// My activity entryGetMyActivityEntryResponseresult=apiInstance.GetMyActivityEntry();Debug.WriteLine(result);}catch(GateApiExceptione){Debug.Print("Exception when calling ActivityApi.GetMyActivityEntry: "+e.Message);Debug.Print("Exception label: {0}, message: {1}",e.ErrorLabel,e.ErrorMessage);Debug.Print("Status Code: "+e.ErrorCode);Debug.Print(e.StackTrace);}}}}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successfully returns activity entry information | - |
[Back to top][Back to API list][Back to Model list][Back to README]
ListActivitiesResponse ListActivities (string recommendType = null, string typeIds = null, string keywords = null, int? page = null, int? pageSize = null, string sortBy = null)
Recommended activity list
Query recommended activity list from Activity Center, supports pagination and sorting
usingSystem.Collections.Generic;usingSystem.Diagnostics;usingIo.Gate.GateApi.Api;usingIo.Gate.GateApi.Client;usingIo.Gate.GateApi.Model;namespaceExample{publicclassListActivitiesExample{publicstaticvoidMain(){Configurationconfig=newConfiguration();config.BasePath="https://api.gateio.ws/api/v4";config.SetGateApiV4KeyPair("YOUR_API_KEY","YOUR_API_SECRET");varapiInstance=newActivityApi(config);varrecommendType="recommendType_example";// string | Recommendation type: hot for popular activities, type for filtering by activity type (type_ids), scenario for matching by activity name (optional) vartypeIds="typeIds_example";// string | Activity type ID, multiple IDs separated by commas (supports filtering by activity type through this field) (optional) varkeywords="keywords_example";// string | Activity name. When scenario type is used, keyword matching is applied (optional) varpage=1;// int? | Page number, starting from 1 (optional) (default to 1)varpageSize=10;// int? | Items per page (optional) (default to 10)varsortBy="sortBy_example";// string | Sort order, e.g., hot for sorting by popularity (optional) try{// Recommended activity listListActivitiesResponseresult=apiInstance.ListActivities(recommendType,typeIds,keywords,page,pageSize,sortBy);Debug.WriteLine(result);}catch(GateApiExceptione){Debug.Print("Exception when calling ActivityApi.ListActivities: "+e.Message);Debug.Print("Exception label: {0}, message: {1}",e.ErrorLabel,e.ErrorMessage);Debug.Print("Status Code: "+e.ErrorCode);Debug.Print(e.StackTrace);}}}}| Name | Type | Description | Notes |
|---|---|---|---|
| recommendType | string | Recommendation type: hot for popular activities, type for filtering by activity type (type_ids), scenario for matching by activity name | [optional] |
| typeIds | string | Activity type ID, multiple IDs separated by commas (supports filtering by activity type through this field) | [optional] |
| keywords | string | Activity name. When scenario type is used, keyword matching is applied | [optional] |
| page | int? | Page number, starting from 1 | [optional] [default to 1] |
| pageSize | int? | Items per page | [optional] [default to 10] |
| sortBy | string | Sort order, e.g., hot for sorting by popularity | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successfully returns activity list | - |
[Back to top][Back to API list][Back to Model list][Back to README]
ListActivityTypesResponse ListActivityTypes ()
Activity type list
Query all activity types supported by Activity Center
usingSystem.Collections.Generic;usingSystem.Diagnostics;usingIo.Gate.GateApi.Api;usingIo.Gate.GateApi.Client;usingIo.Gate.GateApi.Model;namespaceExample{publicclassListActivityTypesExample{publicstaticvoidMain(){Configurationconfig=newConfiguration();config.BasePath="https://api.gateio.ws/api/v4";varapiInstance=newActivityApi(config);try{// Activity type listListActivityTypesResponseresult=apiInstance.ListActivityTypes();Debug.WriteLine(result);}catch(GateApiExceptione){Debug.Print("Exception when calling ActivityApi.ListActivityTypes: "+e.Message);Debug.Print("Exception label: {0}, message: {1}",e.ErrorLabel,e.ErrorMessage);Debug.Print("Status Code: "+e.ErrorCode);Debug.Print(e.StackTrace);}}}}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successfully returns activity type list | - |
[Back to top][Back to API list][Back to Model list][Back to README]