Skip to content

Commit

Permalink
Doku
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberblast committed Nov 18, 2017
1 parent bbf2c59 commit 289138e
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ namespace ConsoleApp1 {
```C#
ISPClient client = new SPClient(
"http://yourSharePointUrl",
"domain",
"loginName",
"password");
"domain",
"loginName",
"password");
```

* Use different authentication procedures
Expand All @@ -44,9 +44,9 @@ using cyberblast.SharePoint.Client.Authentication;
[...]
ISPClient client = new SPClient<TMGAuthenticator>(
"http://yourSharePointUrl",
"domain",
"loginName",
"password");
"domain",
"loginName",
"password");
client.Authenticate();
```

Expand All @@ -72,10 +72,7 @@ namespace ConsoleApp1 {
var query = QueryBuilder.Query(filter, ROW_LIMIT);

void Callback(ListItem item) {
int number = item.GetValue<int>("numberField");
string author = item.GetValue<FieldUserValue, string>(
"Author",
(fieldUserValue) => fieldUserValue.LookupValue);
Console.WriteLine(item.Id);
}

client.Execute(ctx =>
Expand All @@ -89,7 +86,9 @@ namespace ConsoleApp1 {
```C#
void Callback(ListItem item) {
int number = item.GetValue<int>("numberField");
string author = item.GetValue<FieldUserValue, string>("Author", (fieldUserValue) => fieldUserValue.LookupValue);
string author = item.GetValue<FieldUserValue, string>(
"Author",
(fieldUserValue) => fieldUserValue.LookupValue);
}
```

Expand Down

0 comments on commit 289138e

Please sign in to comment.