Giter Club home page Giter Club logo

Comments (5)

apraditya avatar apraditya commented on August 28, 2024

I asked this issue in the prediction discussion group hoping anyone get a clue or anything. https://groups.google.com/d/msg/prediction-api-discuss/Q13CTbL9L4Q/cTutr8wt5jMJ

from google-api-ruby-client.

sqrrrl avatar sqrrrl commented on August 28, 2024

The data is being passed in incorrectly. The data for that method is expected to be in the request body, not as parameters (body == posted data, params == part of URL)

Should be something more like:

result = client.execute(
:api_method => prediction.trainedmodels.insert,
:body_object => {
'id' => 'SiteArticleCategorization',
'storageDataLocation' => storage_path,
'modelType' => 'classification'
})

from google-api-ruby-client.

apraditya avatar apraditya commented on August 28, 2024

Thanks alot! So what's the general guide about the options should execute method receive? It'd be nice if it is documented in Wiki.

from google-api-ruby-client.

sporkmonger avatar sporkmonger commented on August 28, 2024

It's different for each API.

from google-api-ruby-client.

swapnilchincholkar avatar swapnilchincholkar commented on August 28, 2024

you guys saved my day, for post requests we need required api's request object with data which we are supposed to pass in body.

eg. for webmasters -> searchAnalytics/query I passed request body attributes by assigning to "search_analytics_query_request_object" of method "query_search_analytics"

from google-api-ruby-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.