Skip to content

Instantly share code, notes, and snippets.

View danielgamajpa's full-sized avatar

Daniel Gama danielgamajpa

View GitHub Profile
@jakobt
jakobt / woocommerce-csharp-client
Created January 19, 2015 20:06
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);
}