GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Restrict API call query parameters to what we say we accept · Issue #653 · googleapis/google-cloud-node Closed Labels DescriptionRight now, we sometimes kind of blindly pass the user's provided object to the API. We should be sure to only pass through what we say in our docs we accept. I'm thinking something like: /** * @param query.maxResults * @param query.pageSize */ Service.prototype.method = function(query, callback) { var allowedQueryParameters = ['maxResults', 'pageSize']; var requestQuery = util.pluck(query, allowedQueryParameters); // If `query` had more on it, we get a new object back with just the // params we want the API to receive. callApi('POST', '/path', requestQuery); }; Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |