qiniu v0.4.0 Qiniu.Auth
Module about authorization.
See http://developer.qiniu.com/docs/v6/api/reference/security/
Link to this section Summary
Functions
Get access token
Get authorized download url from plain url(host + key)
Get authorized download url from host and key
Generate token for uploading, which can be used in client or just server
Link to this section Functions
Link to this function
access_token(url, body \\ "")
Get access token
Fields
- url - e.g. http://rs.qiniu.com/move/bmV3ZG9jczpmaW5kX21hbi50eHQ=/bmV3ZG9jczpmaW5kLm1hbi50eHQ=
- body - HTTP body, “” by default
Link to this function
authorize_download_url(url, expires_in)
Get authorized download url from plain url(host + key)
Fields
- url - e.g. http://my-bucket.qiniudn.com/prefix/sunflower.jpg
- expires_in - seconds to expire
Link to this function
authorize_download_url(host, key, expires_in)
Get authorized download url from host and key
Fields
- host - e.g. http://my-bucket.qiniudn.com
- key - e.g. prefix/sunflower.jpg
- expires_in - seconds to expire