This is a collection of samples written in C# which provide a starting place for your experimentation into the DCM/DFA Reporting and Trafficking API.
Install Visual Studio 2013+ and Nuget 2.12+
This API uses OAuth 2.0. Learn more about Google APIs and OAuth 2.0 here: https://developers.google.com/accounts/docs/OAuth2
Or, if you'd like to dive right in, follow these steps.
- Visit https://console.developers.google.com to register your application.
- From the API Manager -> Google APIs screen, activate access to "DCM/DFA Reporting and Trafficking API".
- Click on "Credentials" in the left navigation menu
- Click the button labeled "Create credentials" and select "OAuth Client ID"
- Select "Other" as the "Application type", then "Create"
- From the Credentials page, click "Download JSON" next to the client ID you just created and save the file as
client_secrets.jsonin the samples project directory
Once you've checked out the code:
-
Open the DfaReporting.Samples.csproj file.
-
Choose a sample and fill in any prerequisite values. Required values can be identified by the placeholder text: "ENTER_..._HERE".
-
Add the sample name as a command line argument and build/run the project.
-
Complete the authorization steps on your browser.
-
Examine the console output, be inspired and start hacking an amazing new app!