Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using(HttpClient client = new HttpClient())
- {
- client.DefaultRequestHeaders.Add("Authorization", "Bearer " + token.TempToken);
- client.DefaultRequestHeaders.Add("x-li-format", "json");
- var response = await client.GetAsync("https://api.linkedin.com/v1/people/~?format=json");
- if (response.IsSuccessStatusCode)
- {
- return "success";
- }
- return "failed";
- }
Add Comment
Please, Sign In to add comment