Skip to content

Commit

Permalink
fix: page func in go (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
shwetha-manvinkurke authored Sep 7, 2021
1 parent fba6406 commit 6709ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/twilio-go/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ func (c *ApiService) {{{nickname}}}({{#allParams}}{{#required}}{{paramName}} {{{
{{/vendorExtensions.x-is-list-operation}}
{{#vendorExtensions.x-is-list-operation}}
// Retrieve a single page of {{{vendorExtensions.x-domain-name}}} records from the API. Request is executed immediately.
func (c *ApiService) Page{{{vendorExtensions.x-domain-name}}}({{#allParams}}{{#required}}{{paramName}} {{{dataType}}}{{^last}}, {{/last}}{{/required}}{{/allParams}}params *{{{nickname}}}Params, pageToken string, pageNumber string) (*{{{returnType}}}, error) {
func (c *ApiService) Page{{{vendorExtensions.x-domain-name}}}({{#allParams}}{{#required}}{{paramName}} {{{dataType}}}{{^last}}, {{/last}}{{/required}}{{/allParams}}params *{{{nickname}}}Params, pageToken, pageNumber string) (*{{{returnType}}}, error) {
path := "{{{path}}}"
{{>partial_serialization}}
if pageToken != "" {
data.Set("PageToken", pageToken)
}
if pageToken != "" {
if pageNumber != "" {
data.Set("Page", pageNumber)
}

Expand Down

0 comments on commit 6709ab6

Please sign in to comment.