blob: ee1393299f3ef41e8ddc3bc29761df4adb02746a [file] [log] [blame]
Ash Wilson1f110512014-10-02 15:43:47 -04001package tokens
2
3import "github.com/rackspace/gophercloud"
4
Ash Wilsond2d49c42014-10-07 14:16:36 -04005// CreateURL generates the URL used to create new Tokens.
6func CreateURL(client *gophercloud.ServiceClient) string {
Ash Wilson1f110512014-10-02 15:43:47 -04007 return client.ServiceURL("tokens")
8}
hzlouchaof6e29262015-10-27 12:51:08 +08009
hzlouchaob7640892015-11-04 21:37:20 +080010// GetURL generates the URL used to Validate Tokens.
11func GetURL(client *gophercloud.ServiceClient, token string) string {
12 return client.ServiceURL("tokens", token)
13}