Skip to content

Instantly share code, notes, and snippets.

@erikwett
Created July 4, 2017 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikwett/83f84931fd8a6fef32760ef8d7032b83 to your computer and use it in GitHub Desktop.
Save erikwett/83f84931fd8a6fef32760ef8d7032b83 to your computer and use it in GitHub Desktop.
//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