Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-sapoval authored Dec 13, 2018
1 parent dfa5988 commit cada73e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ Install-Package GoogleMeasurementProtocol
var clientId = new ClientId(Guid.NewGuid());

//Make a get request which will contain all information from above
request.Get(clientId);
await request.GetAsync(clientId);

//Make a Post request which will contain all information from above
request.Post(clientId);
await request.PostAsync(clientId);
```

* Validating Hits

```csharp

var requestValidationResponseForGet = request.Debug.Get(new UserId("userId"));
var requestValidationResponseForPost = request.Debug.Post(new UserId("userId"));
var requestValidationResponseForGet = await request.Debug.GetAsync(new UserId("userId"));
var requestValidationResponseForPost = await request.Debug.PostAsync(new UserId("userId"));

```

Expand All @@ -62,6 +62,17 @@ Install-Package GoogleMeasurementProtocol
request.Parameters.Add(new IpOverride("1.2.3.4"));
```

* Batch Requests

```csharp

var batchRequest =
factory.CreateBatchRequest(new List<IGoogleAnalyticsRequest> { request1, request2 });

await batchRequest.PostAsync();

```

License
----

Expand Down

0 comments on commit cada73e

Please sign in to comment.