[Python] Insert data into quip standalone spreadsheet via quip api

Discussão em 'Python' iniciado por Stack, Junho 5, 2025.

  1. Stack

    Stack Membro Participativo

    I googled to find a solution for this but unfortunately no luck. I am want to insert a value in A1 cell number of my first sheet, my spreadsheet is standalone, when i run this code it shows in the online quip update that just something updated, but inside the file it is blank showing nothing, can you pls check what i am missing here.

    import requests
    ACCESS_TOKEN = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    THREAD_ID = 'xxxxxxxxxxxxxxx'
    url = 'https://platform.quip-corpxx.com/1/threads/edit-document'
    headers = {
    'Authorization': f'Bearer {ACCESS_TOKEN}',
    }
    data = {
    'thread_id': THREAD_ID,
    'content': 'serialnumber',
    'location': 'A1'
    }
    response = requests.post(url, headers=headers, data=data)
    print(response.status_code)
    print(response.json())

    Continue reading...

Compartilhe esta Página