Shino1024 / google-api-go-client

Automatically exported from code.google.com/p/google-api-go-client
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Add field selectors #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
`fields` query param allows API backend to trim down the returning entity, 
valuable for working with resources with large number of attributes. Also note 
that some APIs ignore unnecessary calls that may improve performance.

func (c *XCall) Fields(fields string) *XCall {
    c.opt_["fields"] = fields
    return c
}

Sample for drive.files.list with `items/id,nextPageToken`:
GET https://www.googleapis.com/drive/v2/files?fields=items%2Fid%2CnextPageToken

Original issue reported on code.google.com by j...@google.com on 9 Aug 2013 at 10:53

GoogleCodeExporter commented 9 years ago
Successfully auto-migrated to github:
https://github.com/google/google-api-go-client/issues/38
Closing.

Original comment by gmle...@google.com on 8 Apr 2015 at 3:45