This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pageStreamer = new PageStreamer<Google.Apis.Drive.v2.Data.File, FilesResource.ListRequest, FileList, string>( | |
(request, token) => request.PageToken = token, | |
response => response.NextPageToken, | |
response => response.Items); | |
var req = service.Files.List(); | |
req.MaxResults = 1000; | |
foreach (var result in pageStreamer.Fetch(req)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pageStreamer = new PageStreamer<Google.Apis.Drive.v3.Data.File, FilesResource.ListRequest, Google.Apis.Drive.v3.Data.FileList, string>( | |
(request, token) => request.PageToken = token, | |
response => response.NextPageToken, | |
response => response.Files); | |
var req = service.Files.List(); | |
req.PageSize = 1000; | |
foreach (var result in pageStreamer.Fetch(req)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Util.Store; | |
using Google.GData.Client; | |
using Google.GData.Contacts; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This #include statement was automatically added by the Particle IDE. | |
#include "HttpClient/HttpClient.h" | |
/** | |
* Declaring the variables. | |
*/ | |
unsigned int nextTime = 0; // Next time to contact the server | |
HttpClient http; | |
// Headers currently need to be set at init, useful for API keys etc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event": "AnalyticsEvent", | |
"url": "https://www.google-analytics.com/collect", | |
"requestType": "POST", | |
"query": | |
{ | |
"v": "1", | |
"t": "event", | |
"tid" : "{{tid}}", | |
"cd": "{{cd}}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Declaring the variables. | |
*/ | |
char MyIp[16] ; | |
char AccountId[20] = "UA-xxxx-1"; | |
char cid[10] = "123"; | |
void setup() { | |
Serial.begin(9600); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event": "ScreenViewHit", | |
"url": "https://www.google-analytics.com/collect", | |
"requestType": "POST", | |
"query": | |
{ | |
"v": "1", | |
"t": "{{t}}", | |
"tid" : "{{tid}}", | |
"cd": "{{cd}}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Declaring the variables. | |
*/ | |
char MyIp[16] ; | |
char AccountId[20] = "UA-XXX-1"; | |
char cid[10] = "123"; | |
void setup() { | |
Serial.begin(9600); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?define ProductVersion="!(bind.FileVersion.MyAssemblyDll)"?> | |
<?define UpgradeCode="f4d7f199-28f6-45d5-ad99-7c62938274be"?> | |
<?define ProductId="{6408D956-40DA-4AEE-883E-5425F1562004}"?> | |
<?define Version="1.0.0"?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="*" Name="UpgradeTest" Language="1033" Version="$(var.Version)" Manufacturer="xxx" UpgradeCode="$(var.UpgradeCode)"> | |
<Package Id="*" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Google.Apis.AnalyticsReporting.v4; | |
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Services; | |
using System; | |
using System.IO; | |
using System.Security.Cryptography.X509Certificates; | |
namespace GoogleAnaltyics.V4 | |
{ | |
public class ServiceAccountJson |