{"modulePath":"github.com/micro/services","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api is a helper for calling external third party apis\n\n## Functions\n\n```go\nfunc Delete(url string, rsp interface{}) error\n```\nCall the DELETE method for a URL\n\n```go\nfunc Get(url string, rsp interface{}) error\n```\nGet a url and unmarshal a json body into the given value\n\n```go\nfunc Post(url string, ureq, rsp interface{}) error\n```\nPost a url and unmarshal a json body into the given value\n\n```go\nfunc SetCache(v bool, ttl time.Duration)\n```\nSet the cache\n\n```go\nfunc SetKey(k, v string)\n```\nSet a key within the header\n\n","path":"github.com/micro/services/pkg/api","name":"api","synopsis":"Package api is a helper for calling external third party apis","isRedistributable":true}
