Calling appsheet api from python to update rows

Hi,

I want to run python script to update rows in appsheet but couldn't able to get right format to call appsheet API. Can someone help on this? I tried below code but getting 500 response code. 

import requests
response = requests.post("https://api.appsheet.com/api/v2/apps/{f1f63558-ce36-44ce-abf1-d7c56d2290ea}/tables/{TEST_213}/Action...<APP_ACCESS_KEY>")
print(response.status_code)

 

0 5 1,113
5 REPLIES 5

JSO
Silver 2
Silver 2

Try the following:
1 - Create a Script file in your Google Drive (in it you can create the functions you want in JavaScript language.
2 - Bard (IA) tells me that from GoogleScript you can call a function in Python by:
# my_function.py
   def my_function(x):
   print(x + 10)

# script.gs
   import my_function
   my_function(10)

3-From AppSheet create a bot that calls the Script

JSO_0-1690886559027.png

 

@JSO I need help to create the script. Can you please help on that part. 

JSO
Silver 2
Silver 2

Try the following:
1 - Go to Google Drive
2 - Choose the option New (or more, as presented to you)

JSO_2-1690887430868.png

 


3-Select Google Apps Script.

JSO_0-1690887130721.png

4-An editor will open for you to write the function that you will have to call later from AppSheet.

JSO_1-1690887290086.png

5- From there, it is about using JavaScript and the Google API.

Remove the brackets {}

Top Labels in this Space