import 'package:destiny2_api/api.dart';
All URIs are relative to https://www.bungie.net/Platform
Method | HTTP request | Description |
---|---|---|
userGetAvailableThemes | GET /User/GetAvailableThemes/ | |
userGetBungieNetUserById | GET /User/GetBungieNetUserById/{id}/ | |
userGetMembershipDataById | GET /User/GetMembershipsById/{membershipId}/{membershipType}/ | |
userGetMembershipDataForCurrentUser | GET /User/GetMembershipsForCurrentUser/ | |
userGetPartnerships | GET /User/{membershipId}/Partnerships/ | |
userSearchUsers | GET /User/SearchUsers/ |
InlineResponse2004 userGetAvailableThemes()
Returns a list of all available user themes.
import 'package:destiny2_api/api.dart';
var api_instance = new UserApi();
try {
var result = api_instance.userGetAvailableThemes();
print(result);
} catch (e) {
print("Exception when calling UserApi->userGetAvailableThemes: $e\n");
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2002 userGetBungieNetUserById(id)
Loads a bungienet user by membership id.
import 'package:destiny2_api/api.dart';
var api_instance = new UserApi();
var id = 789; // int | The requested Bungie.net membership id.
try {
var result = api_instance.userGetBungieNetUserById(id);
print(result);
} catch (e) {
print("Exception when calling UserApi->userGetBungieNetUserById: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | The requested Bungie.net membership id. |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2005 userGetMembershipDataById(membershipId, membershipType)
Returns a list of accounts associated with the supplied membership ID and membership type. This will include all linked accounts (even when hidden) if supplied credentials permit it.
import 'package:destiny2_api/api.dart';
var api_instance = new UserApi();
var membershipId = 789; // int | The membership ID of the target user.
var membershipType = 56; // int | Type of the supplied membership ID.
try {
var result = api_instance.userGetMembershipDataById(membershipId, membershipType);
print(result);
} catch (e) {
print("Exception when calling UserApi->userGetMembershipDataById: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
membershipId | int | The membership ID of the target user. | |
membershipType | int | Type of the supplied membership ID. |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2005 userGetMembershipDataForCurrentUser()
Returns a list of accounts associated with signed in user. This is useful for OAuth implementations that do not give you access to the token response.
import 'package:destiny2_api/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//destiny2_api.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';
var api_instance = new UserApi();
try {
var result = api_instance.userGetMembershipDataForCurrentUser();
print(result);
} catch (e) {
print("Exception when calling UserApi->userGetMembershipDataForCurrentUser: $e\n");
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2006 userGetPartnerships(membershipId)
Returns a user's linked Partnerships.
import 'package:destiny2_api/api.dart';
var api_instance = new UserApi();
var membershipId = 789; // int | The ID of the member for whom partnerships should be returned.
try {
var result = api_instance.userGetPartnerships(membershipId);
print(result);
} catch (e) {
print("Exception when calling UserApi->userGetPartnerships: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
membershipId | int | The ID of the member for whom partnerships should be returned. |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2003 userSearchUsers(q)
Returns a list of possible users based on the search string
import 'package:destiny2_api/api.dart';
var api_instance = new UserApi();
var q = q_example; // String | The search string.
try {
var result = api_instance.userSearchUsers(q);
print(result);
} catch (e) {
print("Exception when calling UserApi->userSearchUsers: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
q | String | The search string. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]