From d4f0db34efc05c400f46711b52c09d5ec34a13cb Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Tue, 3 May 2022 13:02:30 -0500 Subject: [PATCH] update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 009a254..e4ab07c 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ for app in response.data.apps: Returns an Onspring app or survey according to provided id. ```python -response = client.GetAppById(195) +response = client.GetAppById(appId=195) print(f'Status Code: {response.statusCode}') print(f'id: {response.data.app.id}') @@ -158,7 +158,7 @@ print(f'href: {response.data.app.href}') Returns a collection of Onspring apps and/or surveys according to provided ids. ```python -response = client.GetAppsByIds([195, 240]) +response = client.GetAppsByIds(appIds=[195, 240]) print(f'Status Code: {response.statusCode}') print(f'Count: {response.data.count}') @@ -215,7 +215,7 @@ def PrintField(field: Field): Returns an Onspring field according to provided id. ```python -response = client.GetFieldById(9686) +response = client.GetFieldById(fieldId=9686) print(f'Status Code: {response.statusCode}') PrintField(response.data.field) @@ -226,7 +226,7 @@ PrintField(response.data.field) Returns a collection of Onspring fields according to provided ids. ```python -response = client.GetFieldsByIds([9686, 9687]) +response = client.GetFieldsByIds(fieldIds=[9686, 9687]) print(f'Status Code: {response.statusCode}') print(f'Count: {response.data.count}') @@ -240,7 +240,7 @@ for field in response.data.fields: Returns a paged collection of fields that can be paged through. By default the page size is 50 and page number is 1. ```python -response = client.GetFieldsByAppId(195) +response = client.GetFieldsByAppId(appId=195) print(f'Status Code: {response.statusCode}') print(f'Page Size: {response.data.pageSize}') @@ -257,7 +257,7 @@ You can set your own page size and page number (max is 1,000) as well. ```python pagingRequest = PagingRequest(1, 100) -response = client.GetFieldsByAppId(195, pagingRequest) +response = client.GetFieldsByAppId(appId=195, pagingRequest) print(f'Status Code: {response.statusCode}') print(f'Page Size: {response.data.pageSize}') @@ -274,7 +274,7 @@ response = client.GetFieldsByAppId(195, pagingRequest) #### Get File Info By Id ```python -response = client.GetFileInfoById(1, 6990, 274) +response = client.GetFileInfoById(recordId=1, fieldId=6990, fileId=274) print(f'Status Code: {response.statusCode}') print(f'Name: {response.data.fileInfo.name}') @@ -289,7 +289,7 @@ print(f'File Href: {response.data.fileInfo.fileHref}') #### Get File By Id ```python -response = client.GetFileById(1, 6990, 274) +response = client.GetFileById(recordId=1, fieldId=6990, fileId=274) print(f'Status Code: {response.statusCode}') print(f'Name: {response.data.file.name}')