summaryrefslogtreecommitdiffstats
path: root/examples/apikeys/apikeys.cs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/apikeys/apikeys.cs')
-rw-r--r--examples/apikeys/apikeys.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/apikeys/apikeys.cs b/examples/apikeys/apikeys.cs
index 97a3add..67dce33 100644
--- a/examples/apikeys/apikeys.cs
+++ b/examples/apikeys/apikeys.cs
@@ -10,6 +10,7 @@ dynamic sg = new SendGrid.SendGridAPIClient(_apiKey);
string data = @"{
'name': 'My API Key',
+ 'sample': 'data',
'scopes': [
'mail.send',
'alerts.create',
@@ -26,7 +27,10 @@ Console.ReadLine();
// Retrieve all API Keys belonging to the authenticated user
// GET /api_keys
-dynamic response = sg.client.api_keys.get();
+string queryParams = @"{
+ 'limit': 1
+}";
+dynamic response = sg.client.api_keys.get(queryParams: queryParams);
Console.WriteLine(response.StatusCode);
Console.WriteLine(response.Body.ReadAsStringAsync().Result);
Console.WriteLine(response.Headers.ToString());