Skip to content

Instantly share code, notes, and snippets.

@facert
Created December 20, 2018 10:31
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save facert/fa39f0e094a2dd5c99f108cb975dde5b to your computer and use it in GitHub Desktop.
Save facert/fa39f0e094a2dd5c99f108cb975dde5b to your computer and use it in GitHub Desktop.
1. Create new tiny url
```
curl -i -X POST -H "Content-Type:application/json" -d '{"url": "http://example.com"}' 'http://t.bdaily.club'
Response:
{
"msg": "ok",
"data": {
"tiny_url": "http://t.bdaily.club/ssddz",
"hash_urls": ["http://gateway.bdaily.club/ipfs/QmVjqCLtMAds8mu24kZoMiEgYCSVwf4PZ7EATpVHXhTwHz", "https://gateway.ipfs.io/ipfs/QmVjqCLtMAds8mu24kZoMiEgYCSVwf4PZ7EATpVHXhTwHz", "https://cloudflare-ipfs.com/ipfs/QmVjqCLtMAds8mu24kZoMiEgYCSVwf4PZ7EATpVHXhTwHz"]
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment