2018-06-17 19:24:47 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2018-07-05 17:18:25 +00:00
|
|
|
e "git.xdrm.io/go/aicra/err"
|
|
|
|
i "git.xdrm.io/go/aicra/implement"
|
2018-06-17 19:24:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Builds an access token from credentials
|
|
|
|
func Post(d i.Arguments, r *i.Response) i.Response {
|
|
|
|
|
|
|
|
if d.Has("_AUTHORIZATION_") {
|
|
|
|
fmt.Printf("authorization: '%s'\n", d["_AUTHORIZATION_"].(string))
|
|
|
|
}
|
|
|
|
|
|
|
|
r.Err = e.Success
|
|
|
|
return *r
|
|
|
|
}
|