Skip to content

Commit f1590d6

Browse files
committed
More bulk actions
1 parent f924f1a commit f1590d6

File tree

5 files changed

+107
-6
lines changed

5 files changed

+107
-6
lines changed

components/dataforseo/actions/get-bulk-backlinks/get-bulk-backlinks.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ export default {
1919
props: {
2020
dataforseo,
2121
targets: {
22-
type: "string[]",
23-
label: "Targets",
24-
description: "Up to 1000 domains, subdomains or webpages to get number of backlinks for. A domain or a subdomain should be specified without `https://` and `www`. A page should be specified with absolute URL (including `http://` or `https://`",
22+
propDefinition: [
23+
dataforseo,
24+
"targets",
25+
],
2526
},
2627
tag: {
2728
propDefinition: [

components/dataforseo/actions/get-bulk-ranks/get-bulk-ranks.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ export default {
1919
props: {
2020
dataforseo,
2121
targets: {
22-
type: "string[]",
23-
label: "Targets",
24-
description: "Up to 1000 domains, subdomains or webpages to get `rank` for. A domain or a subdomain should be specified without `https://` and `www`. A page should be specified with absolute URL (including `http://` or `https://`",
22+
propDefinition: [
23+
dataforseo,
24+
"targets",
25+
],
2526
},
2627
rankScale: {
2728
propDefinition: [
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
3+
export default {
4+
key: "dataforseo-get-bulk-referring-domains",
5+
name: "Get Bulk Referring Domains",
6+
description:
7+
"Get the number of referring domains pointing to the specified domains, subdomains, and pages. [See the documentation](https://docs.dataforseo.com/v3/backlinks/bulk_referring_domains/live/)",
8+
version: "0.0.1",
9+
type: "action",
10+
methods: {
11+
getBulkReferringDomains(args = {}) {
12+
return this._makeRequest({
13+
path: "/backlinks/bulk_referring_domains/live",
14+
method: "post",
15+
...args,
16+
});
17+
},
18+
},
19+
props: {
20+
dataforseo,
21+
targets: {
22+
propDefinition: [
23+
dataforseo,
24+
"targets",
25+
],
26+
},
27+
tag: {
28+
propDefinition: [
29+
dataforseo,
30+
"tag",
31+
],
32+
},
33+
},
34+
async run({ $ }) {
35+
const response = await this.getBulkReferringDomains({
36+
$,
37+
data: [
38+
{
39+
targets: this.targets,
40+
tag: this.tag,
41+
},
42+
],
43+
});
44+
$.export("$summary", "Successfully retrieved bulk referring domains");
45+
return response;
46+
},
47+
};
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
3+
export default {
4+
key: "dataforseo-get-bulk-spam-score",
5+
name: "Get Bulk Spam Score",
6+
description:
7+
"Get spam scores of the specified domains, subdomains, and pages. [See the documentation](https://docs.dataforseo.com/v3/backlinks/bulk_spam_score/live/)",
8+
version: "0.0.1",
9+
type: "action",
10+
methods: {
11+
getBulkSpamScore(args = {}) {
12+
return this._makeRequest({
13+
path: "/backlinks/bulk_spam_score/live",
14+
method: "post",
15+
...args,
16+
});
17+
},
18+
},
19+
props: {
20+
dataforseo,
21+
targets: {
22+
propDefinition: [
23+
dataforseo,
24+
"targets",
25+
],
26+
},
27+
tag: {
28+
propDefinition: [
29+
dataforseo,
30+
"tag",
31+
],
32+
},
33+
},
34+
async run({ $ }) {
35+
const response = await this.getBulkSpamScore({
36+
$,
37+
data: [
38+
{
39+
targets: this.targets,
40+
tag: this.tag,
41+
},
42+
],
43+
});
44+
$.export("$summary", "Successfully retrieved bulk spam score");
45+
return response;
46+
},
47+
};

components/dataforseo/dataforseo.app.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ export default {
168168
description: "Additional parameters to send in the request. [See the documentation](https://developers.ringcentral.com/api-reference/External-Contacts/createContact) for all available parameters. Values will be parsed as JSON where applicable.",
169169
optional: true,
170170
},
171+
targets: {
172+
type: "string[]",
173+
label: "Targets",
174+
description: "Up to 1000 domains, subdomains or webpages to get data for. A domain or a subdomain should be specified without `https://` and `www`. A page should be specified with absolute URL (including `http://` or `https://`",
175+
},
171176
},
172177
methods: {
173178
_baseUrl() {

0 commit comments

Comments
 (0)