Python API for getting the view defination

Nir99
New Member

Hi,

I wonder whether there is a python API for reading the view definition? All I was able to find is an API for getting the explores.

Thanks,
Nir.

0 2 195
2 REPLIES 2

The response I gave over here about editing files also is true for viewing the contents of files. Long story short: Use the github API or git command line to access the looker file system, not the Looker API.

The Looker API tries to stay out of the business of file management. We hook up to Github (or whatever you like) for source control, so we recommend that you go through your source control provider’s API in order to actually modify files. In your case, using the Github API or just some shell commands to write new files + push them to the git repo in question should work. Make sure to hook up the deploy webhook also: https://help.looker.com/hc/en-us/articles/360001288268-Deploy-Webhook-Pulling-F…

Nir99
New Member

thank you for the reply.