19 lines
334 B
Go
19 lines
334 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
e "git.xdrm.io/go/xb-api/err"
|
||
|
i "git.xdrm.io/go/xb-api/implement"
|
||
|
)
|
||
|
|
||
|
// 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
|
||
|
}
|