Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/apaleo/apaleo.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/azure_api_for_fhir/azure_api_for_fhir.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/battle_net/battle_net.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/callminer/callminer.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/donorbox/donorbox.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/dovetail/dovetail.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/epic_games/epic_games.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/exist/exist.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/have_i_been_pwned/have_i_been_pwned.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/honeyhive/honeyhive.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "hypeauditor-get-instagram-report",
name: "Get Instagram Report",
description: "Returns a report about the specified Instagram user. [See the documentation](https://hypeauditor.readme.io/reference/report_instagram#requests)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
import app from "../../hypeauditor.app.mjs";
export default {
key: "hypeauditor-get-tiktok-report",
name: "Get Tiktok Report",
description: "Returns a report about the specified Tiktok channel. [See the documentation](https://hypeauditor.readme.io/reference/get_report_tiktok)",
version: "0.0.1",
type: "action",
props: {
app,
channelUsername: {
propDefinition: [
app,
"channelUsername",
],
optional: false,
},
},
async run({ $ }) {
const response = await this.app.getTiktokReport({
$,
data: {
channel: this.channelUsername,
},
});
$.export("$summary", `Successfully sent the request. Report state: '${response.result.report_state}'`);
return response;
},
};
import app from "../../hypeauditor.app.mjs";

export default {
key: "hypeauditor-get-tiktok-report",
name: "Get Tiktok Report",
description: "Returns a report about the specified Tiktok channel. [See the documentation](https://hypeauditor.readme.io/reference/get_report_tiktok)",
version: "0.0.2",
type: "action",
props: {
app,
channelUsername: {
propDefinition: [
app,
"channelUsername",
],
optional: false,
},
},

async run({ $ }) {
const response = await this.app.getTiktokReport({
$,
data: {
channel: this.channelUsername,
},
});
$.export("$summary", `Successfully sent the request. Report state: '${response.result.report_state}'`);

return response;
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import hypeauditor from "../../hypeauditor.app.mjs";

export default {
key: "hypeauditor-get-twitch-report",
name: "Get Twitch Report",
description: "Generates a Twitch report for a specified channel. [See the documentation](https://hypeauditor.readme.io/reference/report_twitch)",
version: "0.0.1",
type: "action",
props: {
hypeauditor,
channel: {
propDefinition: [
hypeauditor,
"twitchChannel",
],
},
},
async run({ $ }) {
const {
hypeauditor, ...params
} = this;
const response = await hypeauditor.getTwitchReport({
$,
params,
});
$.export("$summary", `Successfully fetched Twitch report for channel ${this.channel}`);
return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "hypeauditor-get-youtube-report",
name: "Get Youtube Report",
description: "Returns a report about the specified Youtube channel. [See the documentation](https://hypeauditor.readme.io/reference/report_youtube)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
app,
Expand Down
11 changes: 11 additions & 0 deletions components/hypeauditor/hypeauditor.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ export default {
type: "app",
app: "hypeauditor",
propDefinitions: {
twitchChannel: {
type: "string",
label: "Twitch Channel Username",
description: "The Twitch username (e.g. `nasa`) from a Twitch channel URL (in this example, `https://www.twitch.tv/nasa`).",
},
username: {
type: "string",
label: "Username",
Expand Down Expand Up @@ -73,5 +78,11 @@ export default {
...args,
});
},
async getTwitchReport(opts = {}) {
return this._makeRequest({
path: "/auditor.twitch/",
...opts,
});
},
},
};
2 changes: 1 addition & 1 deletion components/hypeauditor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/hypeauditor",
"version": "0.1.0",
"version": "0.2.0",
"description": "Pipedream HypeAuditor Components",
"main": "hypeauditor.app.mjs",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion components/hystruct/hystruct.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/jumpcloud/jumpcloud.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/kiwihr/kiwihr.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/logo_dev/logo_dev.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/mindbody/mindbody.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/ninjaone/ninjaone.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/nmbrs/nmbrs.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/odoo/odoo.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/paylocity/paylocity.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/proposify/proposify.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/verticalresponse/verticalresponse.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/vonage/vonage.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/wolfram_alpha_api/wolfram_alpha_api.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/yext/yext.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
18 changes: 6 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading