Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
//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