You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
324 B
20 lines
324 B
package locations
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
)
|
|
|
|
func (l Locations) GetUrl(ctx context.Context) (string, error) {
|
|
url := "/locations/getUrl"
|
|
prefix := "/cloudapi"
|
|
|
|
url = prefix + url
|
|
res, err := l.client.DecortApiCall(ctx, http.MethodPost, url, nil)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
|
|
return string(res), nil
|
|
}
|