With Looker, you can easily build performant, dynamic applications that look great and provide value to your users. Here are some examples of what you can build using the Looker API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
looker: {
type: "app",
app: "looker",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.looker.$auth.looker_base_url}/api/4.0/user`,
headers: {
"Authorization": `token ${this.looker.$auth.oauth_access_token}`,
},
})
},
})
Looker uses OAuth authentication. When you connect your Looker account, Pipedream will open a popup window where you can sign into Looker and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Looker API.
Pipedream requests the following authorization scopes when you connect your account:
POST
{{custom_fields.looker_base_url}}/api/4.0/login
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
POST
{{custom_fields.looker_base_url}}/api/4.0/login
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}