Skip to content

Instantly share code, notes, and snippets.

View danielgamajpa's full-sized avatar

Daniel Gama danielgamajpa

View GitHub Profile
@danielgamajpa
danielgamajpa / woocommerce-csharp-client
Created April 18, 2016 20:04 — forked from jakobt/woocommerce-csharp-client
Consuming WooCommerce REST API from C#
//C# port of the https://github.com/kloon/WooCommerce-REST-API-Client-Library
//Including handling of woocommerce insisting on uppercase UrlEncoded entities
public class WoocommerceApiClient
{
private static byte[] HashHMAC(byte[] key, byte[] message)
{
var hash = new HMACSHA256(key);
return hash.ComputeHash(message);
}