Guest User

Untitled

a guest
Dec 14th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. parameters_to_tuples
  2.  
  3. parameters_to_tuples
  4.  
  5. /*
  6.  
  7. GetContactReports returns a list of contact reports
  8.  
  9. Enter values for pagination or use defaults
  10.  
  11. */
  12.  
  13. func (a *Client) GetContactReports(params *GetContactReportsParams, authInfo runtime.ClientAuthInfoWriter) error {
  14. // TODO: Validate the params before sending
  15. if params == nil {
  16. params = NewGetContactReportsParams()
  17. }
  18.  
  19. _, err := a.transport.Submit(&runtime.ClientOperation{
  20. ID: "getContactReports",
  21. Method: "GET",
  22. PathPattern: "/contactReport",
  23. ProducesMediaTypes: []string{"application/json"},
  24. ConsumesMediaTypes: []string{""},
  25. Schemes: []string{"https"},
  26. Params: params,
  27. Reader: &GetContactReportsReader{formats: a.formats},
  28. AuthInfo: authInfo,
  29. Context: params.Context,
  30. Client: params.HTTPClient,
  31. })
  32.  
  33. if err != nil {
  34. return err
  35. }
  36. return nil
  37.  
  38. }
Add Comment
Please, Sign In to add comment