Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example: Get List Items
using (var client = new SPHttpClient(webUri, userName, password))
var listTitle = "Tasks";
var endpointUrl = string.Format("{0}/_api/web/lists/getbytitle('{1}')/items",webUri,listTitle);
var data = client.ExecuteJson(endpointUrl);
foreach (var item in data["value"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment