Commit from GitHub Actions (Publish APIs & Clients)

This commit is contained in:
domwong
2021-10-26 09:09:24 +00:00
parent f0019e576a
commit 5cb3a51ecb
8 changed files with 19 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ type GifsService struct {
client *client.Client
}
// Search for a gif
// Search for a GIF
func (t *GifsService) Search(request *SearchRequest) (*SearchResponse, error) {
rsp := &SearchResponse{}
return rsp, t.client.Call("gifs", "Search", request, rsp)

View File

@@ -14,6 +14,7 @@ import (
"github.com/micro/services/clients/go/forex"
"github.com/micro/services/clients/go/function"
"github.com/micro/services/clients/go/geocoding"
"github.com/micro/services/clients/go/gifs"
"github.com/micro/services/clients/go/google"
"github.com/micro/services/clients/go/helloworld"
"github.com/micro/services/clients/go/holidays"
@@ -61,6 +62,7 @@ func NewClient(token string) *Client {
ForexService: forex.NewForexService(token),
FunctionService: function.NewFunctionService(token),
GeocodingService: geocoding.NewGeocodingService(token),
GifsService: gifs.NewGifsService(token),
GoogleService: google.NewGoogleService(token),
HelloworldService: helloworld.NewHelloworldService(token),
HolidaysService: holidays.NewHolidaysService(token),
@@ -108,6 +110,7 @@ type Client struct {
ForexService *forex.ForexService
FunctionService *function.FunctionService
GeocodingService *geocoding.GeocodingService
GifsService *gifs.GifsService
GoogleService *google.GoogleService
HelloworldService *helloworld.HelloworldService
HolidaysService *holidays.HolidaysService

View File

@@ -11,6 +11,7 @@ import * as file from "./file";
import * as forex from "./forex";
import * as fx from "./function";
import * as geocoding from "./geocoding";
import * as gifs from "./gifs";
import * as google from "./google";
import * as helloworld from "./helloworld";
import * as holidays from "./holidays";
@@ -55,6 +56,7 @@ export class Client {
this.forexService = new forex.ForexService(token);
this.functionService = new fx.FunctionService(token);
this.geocodingService = new geocoding.GeocodingService(token);
this.gifsService = new gifs.GifsService(token);
this.googleService = new google.GoogleService(token);
this.helloworldService = new helloworld.HelloworldService(token);
this.holidaysService = new holidays.HolidaysService(token);
@@ -98,6 +100,7 @@ export class Client {
forexService: forex.ForexService;
functionService: fx.FunctionService;
geocodingService: geocoding.GeocodingService;
gifsService: gifs.GifsService;
googleService: google.GoogleService;
helloworldService: helloworld.HelloworldService;
holidaysService: holidays.HolidaysService;

View File

@@ -76,5 +76,5 @@
"prepare": "npm run build"
},
"types": "index.d.ts",
"version": "1.0.564"
"version": "1.0.565"
}