Skip to content

Instantly share code, notes, and snippets.

View Chibuikekenneth's full-sized avatar
💥
Stabilizing my DSAS

Chibuike Kenneth Chibuikekenneth

💥
Stabilizing my DSAS
View GitHub Profile
/// <summary>
/// Post for a REST api
/// </summary>
/// <param name="token">authorization token</param>
/// <param name="url">REST url for the resource</param>
/// <param name="content">content</param>
/// <returns>response from the rest url</returns>
public async Task<JObject> PostAsync(string token, string url, string content)
{
byte[] data = Encoding.UTF8.GetBytes(content);