These sample projects use the old HMAC authentication. We recommend using the new OAuth.

You can use the sample projects below to get started connecting to the Cause Machine API.

.NET

The .NET sample project is a console application that you can use to test against the Cause Machine API. Click download below, unzip the file, open the project, enter your own apiKey and apiSecret for your organization and hit run. The HMACWebClient handles generating the Authorization header so you may want to pull out that class to use in your own project to speed up integration.

Download


PHP

You can use the PHP sample script to test against the Cause Machine API. The sample shows how to generate and encrypt the Authorization header. Click download below, unzip the file, enter your own apiKey and apiSecret for your organization and run the script.

Download