From 6637b6da8a278b0ca7001b05c5b1dc71bb09e52a Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Tue, 3 May 2022 11:08:19 -0500 Subject: [PATCH] update README.md --- README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f4a897e..31c0c13 100644 --- a/README.md +++ b/README.md @@ -138,18 +138,32 @@ for app in response.data.apps: ### Get App By Id +Returns an Onspring app or survey according to provided id. + ```python response = client.GetAppById(appId) - print(f'Status Code: {response.statusCode}') - print(f'id: {response.data.app.id}') - print(f'Name: {response.data.app.name}') - print(f'href: {response.data.app.href}') +print(f'Status Code: {response.statusCode}') +print(f'id: {response.data.app.id}') +print(f'Name: {response.data.app.name}') +print(f'href: {response.data.app.href}') ``` ### Get Apps By Ids +Returns a collection of Onspring apps and/or surveys according to provided ids. + ```python +appIds = [1,2,3,4,5] +response = client.GetAppsByIds(appIds) + +print(f'Status Code: {response.statusCode}') +print(f'Count: {response.data.count}') + +for app in response.data.apps: + print(f'Id: {app.id}') + print(f'Name: {app.name}') + print(f'href: {app.href}') ``` ### Get Field By Id