Skip to content

Instantly share code, notes, and snippets.

@leplay
Created December 16, 2023 08:25
Show Gist options
  • Save leplay/bf2a490f0081b845c4beffd9b39bcd15 to your computer and use it in GitHub Desktop.
Save leplay/bf2a490f0081b845c4beffd9b39bcd15 to your computer and use it in GitHub Desktop.
stash-ip.js
$httpClient.get('https://api.my-ip.io/ip', function (error, response, data) {
$done({
title: '当前 IP 地址',
content: data,
backgroundColor: '#663399',
icon: 'network',
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment