-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add new action to ip2location_io #16347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ip2location
wants to merge
7
commits into
PipedreamHQ:master
Choose a base branch
from
ip2location:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
08eb0b0
Added Hosted Domain API for IP2Location.io Integration
ip2location 8d75612
Merge branch 'PipedreamHQ:master' into master
ip2location c4e01d5
Implement several fixes following the auto-check
ip2location 8f3278c
Merge branch 'master' of https://github.com/ip2location/pipedream
ip2location ea7797e
Fix some lint code issues.
ip2location ba76bfb
Update ip2location_io.app.mjs
ip2location 8c6c3f3
Merge branch 'master' into master
ip2location File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
components/ip2location_io/actions/lookup-hosted-domain/lookup-hosted-domain.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| import ip2location from "../../ip2location_io.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "ip2location_io-lookup-hosted-domain", | ||
| name: "Lookup Hosted Domain", | ||
| description: "Retrieve the list of hosted domains on an IP Address. [See the docs here](https://www.ip2location.io/ip2whois-domains-documentation)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| ip2location, | ||
| ip: { | ||
| type: "string", | ||
| label: "IP Address", | ||
| description: "IP address (IPv4 or IPv6) to lookup", | ||
| }, | ||
| format: { | ||
| propDefinition: [ | ||
| ip2location, | ||
| "format", | ||
| ], | ||
| }, | ||
| page: { | ||
| type: "integer", | ||
| label: "Page", | ||
| description: "Pagination result returns of the hosted domains. If unspecified, 1st page will be used.", | ||
| optional: true, | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.ip2location.lookupHostedDomain({ | ||
| params: { | ||
| ip: this.ip, | ||
| format: this.format, | ||
| page: this.page, | ||
| }, | ||
| }); | ||
|
|
||
| if (response) { | ||
| $.export("$summary", `Successfully retrieved hosted domains about IP ${this.ip}.`); | ||
| } | ||
|
|
||
| return response; | ||
| }, | ||
| }; | ||
coderabbitai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
coderabbitai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.