Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/GraphLite/GraphApiClient.Me.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace GraphLite
{
public partial class GraphApiClient
{
public async Task MeChangePassword(ChangePasswordRequest passwordRequest)
{
var resource = $"me/changePassword";
var responseMessage = await DoExecuteRequest(HttpMethod.Post, resource);
var response = await responseMessage.Content.ReadAsStringAsync();
}

}

public class ChangePasswordRequest
{
[JsonProperty("currentPassword")]
public string CurrentPassword { get; set; }

[JsonProperty("newPassword")]
public string NewPassword { get; set; }
}
}