Get Started
Create your CloudSponge account and tell us your domain. If it’s your development environment you’ll get a CloudSponge Key for free.
Install
Download the .Net wrapper from the GitHub repo: https://github.com/cloudsponge/cloudsponge-lib-net
Usage
// instantiate with your CloudSponge credentials
var api = new Api("DomainKey", "DomainPassword");
// Consent example
var consent = api.Consent(ContactSource.Gmail);
Process.Start(consent.Url);
// Desktop example
var consent = api.Desktop(ContactSource.Outlook);
// render the value of consent.Url in an applet tag
// here's an example of one: https://gist.github.com/dangerouse/6510926
var events = api.Events(consent.ImportId);
// Wait for events.IsComplete
var contacts = api.Contacts(consent.ImportId);
Other languages than .Net
Don’t want to use .Net? Not a problem! CloudSponge offers API for several languages:
PHP – Java – Ruby – .Net – ColdFusion – or even a Do-It-Yourself Approach, which uses a REST API to return Contacts in JSON format.