diff --git a/README.md b/README.md index d9b1fea..bfbe685 100644 --- a/README.md +++ b/README.md @@ -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")); ``` @@ -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 { request1, request2 }); + + await batchRequest.PostAsync(); + +``` + License ----