Created
December 20, 2018 10:31
-
-
Save facert/fa39f0e094a2dd5c99f108cb975dde5b to your computer and use it in GitHub Desktop.
This file contains 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
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