Skip to content

Instantly share code, notes, and snippets.

@lidaobing
Created April 27, 2013 10:23
Show Gist options
  • Save lidaobing/5472617 to your computer and use it in GitHub Desktop.
Save lidaobing/5472617 to your computer and use it in GitHub Desktop.
$ bundle exec bin/backup2qiniu gen_token
input your keys (you can find them on https://dev.qiniutek.com/account/keys)
Access Key: 1PpS-UnbKewFTut4qBETq5kbq9Z1MtkLPTMANJ6h
Secret Key: *******
Your buckets: paperclip-qiniu-example, backup2
Select Bucket: backup2
Token Valid Days (365):
Params
access_key: 1PpS-UnbKewFTut4qBETq5kbq9Z1MtkLPTMANJ6h
secret_key: msNLHft5sEvAvuw8JiKxA2RP0dj1IgURim2mwuZX
bucket: backup2
valid_days: 365
Upload Token
1PpS-UnbKewFTut4qBETq5kbq9Z1MtkLPTMANJ6h:******:eyJzY29wZSI6ImJhY2t1cDIiLCJkZWFkbGluZSI6MTM5ODU5NDA4MX0=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment