Skip to content

Commit

Permalink
Merge pull request #11 from tranpl/master
Browse files Browse the repository at this point in the history
doc change
  • Loading branch information
tranpl authored Aug 15, 2017
2 parents 3a1541d + ac5bcd9 commit 74091cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ __Usage__:
3. Add "using Redcap.Interfaces" namespace (contains some enums for redcap optional params)
4. instantiate a new instance of the redcapapi object

```C# __var rc = new Redcap.RedcapApi("redcap token here", "your redcap api endpoint here")__```
__Example__
```C#

```C# __var version = await rc.GetRedcapVersionAsync(RedcapFormat.json, RedcapDataType.flat);__```
var rc = new Redcap.RedcapApi("redcap token here", "your redcap api endpoint here")

```

```C#

var version = await rc.GetRedcapVersionAsync(RedcapFormat.json, RedcapDataType.flat);

```

__Install directly in Package Manager Console__

Expand Down
7 changes: 7 additions & 0 deletions RedcapApi/Api/Redcap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ public async Task<string> GetMetaDataAsync(RedcapFormat? redcapFormat, ReturnFor
return String.Empty;
}
}
///
/// <summary>
///The method hands the return content from a request, the response.
/// The method allows the calling method to choose a return type.
/// </summary>
/// <param name="returnContent"></param>
/// <returns></returns>
private async Task<string> HandleReturnContent(ReturnContent returnContent = ReturnContent.count)
{
try
Expand Down

0 comments on commit 74091cd

Please sign in to comment.