C# sample code
The C# sample API client can be downloaded from here.
Note: SalesInvoices should now be named SalesOrders.
Generating the method signature
    private static string GetSignature(string args, string privatekey) 
    { 
        var encoding = new System.Text.UTF8Encoding(); 
        byte[] key = encoding.GetBytes(privatekey); 
        var myhmacsha256 = new HMACSHA256(key); 
        byte[] hashValue = myhmacsha256.ComputeHash(encoding.GetBytes(args)); 
        string hmac64 = Convert.ToBase64String(hashValue); 
        myhmacsha256.Clear(); 
        return hmac64; 
    }