import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
domain_group: {
type: "app",
app: "domain_group",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.domain_group.$auth.api_url}/v1/me`,
headers: {
Authorization: `Bearer ${this.domain_group.$auth.oauth_access_token}`,
},
})
},
})
Emit new event when an agency listing is updated. See the documentation
Emit new event when a new agency is created. See the documentation
Emit new event when a new agency listing is created. See the documentation
Creates a new business listing. See the documentation
Creates a new commercial listing. See the documentation
Creates a new residential listing. See the documentation
Domain Group uses OAuth authentication. When you connect your Domain Group account, Pipedream will open a popup window where you can sign into Domain Group and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Domain Group API.
Pipedream requests the following authorization scopes when you connect your account:
openid
profile
offline_access
api_listings_read
api_listings_write
api_agencies_read
api_agencies_write
api_agencies_write
GET
https://auth.domain.com.au/v1/connect/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
nonce={{oauth.state}}
POST
https://auth.domain.com.au/v1/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://auth.domain.com.au/v1/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}