Exemple #1
0
 public async Task <Response <Profile> > GetProfileAsync(Title title, Platform platform, string username, ProfileType profileType = ProfileType.Multiplayer)
 {
     return(await(Endpoint + "/crm/cod/v2")
            .AppendPathSegment("title").AppendPathSegment(title.ToKey())
            .AppendPathSegment("platform").AppendPathSegment(platform.ToKey())
            .AppendPathSegment("gamer").AppendPathSegment(username, true)
            .AppendPathSegment("profile")
            .SetQueryParam("type", profileType.ToKey())
            .WithClient(_client)
            .GetJsonAsync <Response <Profile> >());
 }