looker

package module
v0.0.0-...-df8e853 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2016 License: MIT Imports: 2 Imported by: 0

README

Auto-generated Looker API v3 bindings for Go

Based on the https://yourinstance.looker.com:19999/api/3.0/swagger.json file retrieved from https://yourinstance.looker.com:19999/api-docs/index.html

Used https://goswagger.io/ to generate.

See documentation entry point at https://godoc.org/github.com/abourget/looker

WARN: this is API v3, it will not work with API v2.

WARNING: this repo does not actually work! The generated code needs much doesn't actually compile. I'll give this another run some other time.. if you manage to generate with swagger generate client in this directory, and compile the client, then let me know.

Setting up your client

Get the code and its dependencies:

go get -v github.com/abourget/looker

In your code, get a client:

import (
    "github.com/abourget/looker"
)

...

lookerClient := looker.New("your-shiny-instance.looker.com", nil)

Then login and do stuff:

import (
    "github.com/abourget/looker/client/api_auth"
)

...

ok, err := lookerClient.APIAuth.Login(&api_auth.LoginParams{
	ClientID:     *myClientID,
	ClientSecret: *myClientSecret,
})

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(domain string, formats strfmt.Registry) *client.LookerAPI30Reference

New creates a new Looker client for your domain.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL