Method GetUserProfile
GetUserProfile(String, Boolean)
Gets information about a user's Halo Waypoint profile.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.HaloApiResultContainer<Den.Dev.Grunt.Models.Waypoint.UserProfile,Den.Dev.Grunt.Models.RawResponseContainer>> GetUserProfile (string userId, bool isXuid);
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | User identifier. Can be a XUID or Gamertag. If XUID is used, then |
System.Boolean | isXuid | Determines whether the user ID specified in |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HaloApiResultContainer<UserProfile,RawResponseContainer>> | If successful, returns an instance of UserProfile containing profile information. Otherwise, returns a null object and error details. |
Examples
Here is an example response from the API, as snapshotted on 10/11/2022:
{
"xuid": "2533274837773602",
"gamertag": "BreadKrtek",
"gamerpic": {
"small": "https://images-eds-ssl.xboxlive.com/image?url=wHwbXKif8cus8csoZ03RW8ke8ralOdP9BGd4wzwl0MJ9z6QzuGwZjtvbE7sSsMVW6LiEZmpqmsKukU0M8LRLHiaAUiVr63s0STC3mwlgJzAkMFmhO.xaviC7shx29ZEw.vSTpBUhkOw_5LbjZmCFuaIWIBkUMuD7ueJ4JfXYHfU-&format=png&w=64&h=64",
"medium": "https://images-eds-ssl.xboxlive.com/image?url=wHwbXKif8cus8csoZ03RW8ke8ralOdP9BGd4wzwl0MJ9z6QzuGwZjtvbE7sSsMVW6LiEZmpqmsKukU0M8LRLHiaAUiVr63s0STC3mwlgJzAkMFmhO.xaviC7shx29ZEw.vSTpBUhkOw_5LbjZmCFuaIWIBkUMuD7ueJ4JfXYHfU-&format=png&w=208&h=208",
"large": "https://images-eds-ssl.xboxlive.com/image?url=wHwbXKif8cus8csoZ03RW8ke8ralOdP9BGd4wzwl0MJ9z6QzuGwZjtvbE7sSsMVW6LiEZmpqmsKukU0M8LRLHiaAUiVr63s0STC3mwlgJzAkMFmhO.xaviC7shx29ZEw.vSTpBUhkOw_5LbjZmCFuaIWIBkUMuD7ueJ4JfXYHfU-&format=png&w=424&h=424",
"xlarge": "https://images-eds-ssl.xboxlive.com/image?url=wHwbXKif8cus8csoZ03RW8ke8ralOdP9BGd4wzwl0MJ9z6QzuGwZjtvbE7sSsMVW6LiEZmpqmsKukU0M8LRLHiaAUiVr63s0STC3mwlgJzAkMFmhO.xaviC7shx29ZEw.vSTpBUhkOw_5LbjZmCFuaIWIBkUMuD7ueJ4JfXYHfU-&format=png"
}
}