Created
July 4, 2017 13:07
-
-
Save erikwett/83f84931fd8a6fef32760ef8d7032b83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//send a CreateSessionObject to the app (handle 1), request id 7 | |
{"method":"CreateSessionObject", | |
"handle":1, | |
"params":[ | |
{"qInfo":{"qId":"SheetList","qType":"SheetList"}, | |
"qAppObjectListDef":{"qType":"sheet", | |
"qData":{"title":"/qMetaDef/title","description":"/qMetaDef/description", | |
"thumbnail":"/thumbnail","cells":"/cells","rank":"/rank","columns":"/columns","rows":"/rows"} | |
} | |
} | |
], | |
"delta":false, | |
"jsonrpc":"2.0", | |
"id":7 | |
} | |
//response 7 contains the handle(2) for the new object | |
{ | |
"jsonrpc":"2.0", | |
"id":7, | |
"result":{"qReturn":{"qType":"GenericObject","qHandle":2, | |
"qGenericType":"SheetList","qGenericId":"d6e2c73b-9d68-4e2b-8709-58c92b79848e"}}, | |
"change":[2] | |
} | |
//send a GetLayout to the new object(handle 2) to get the actual data | |
{ | |
"method":"GetLayout", | |
"handle":2, | |
"params":[], | |
"delta":true, | |
"jsonrpc":"2.0", | |
"id":9 | |
} | |
//the respons contains the actual data(omitted here) | |
{ | |
"jsonrpc":"2.0", | |
"id":9, | |
"delta":true, | |
"result":{"qLayout":["...."]} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment