Comments (6)
It seems like neither RecycleInventoryItemRequest
nor response is in rpc_sub.rb. I suspect the Proto files need to be updated, I'll need to have a look at this some point upcoming weekend (they all need updating to the new structure).
However, If you really want to get this working I've published a branch with this call working for you: https://github.com/nabeelamjad/poke-api/tree/RecycleInventory (you can run gem build poke-api.gemspec && gem install poke-api-0.0.2.gem
to override your gem once you checkout/download that git branch, alternatively point Bundler at the branch instead).
The way you would invoke this is client.recycle_inventory_item(item_id: 201, count: 10)
followed with client.call
.
from poke-api.
Ok thank you very much, will test and update you.
if you need help with your api I could give you some of my time, the problem is that I don't really understand how this protos part works, maybe if you could guide me to something to give me the basics to start.
from poke-api.
Have a look at this link: https://github.com/AeonLucid/POGOProtos/search?utf8=%E2%9C%93&q=recycle. I've gotten the proto files from there and simply added them to the existing structure (not too difficult, have a look at my commit). To generate proto files all you need to do is run the protoc
command targeting the .proto
files/directory. https://developers.google.com/protocol-buffers/docs/reference/ruby-generated goes into more detail about it, from there on you can simply use them by requiring the files and invoking the classes.
You will need to have protoc installed, instructions here: https://github.com/google/protobuf/blob/master/src/README.md.
from poke-api.
Is there a reason you don't/can't just compile the entirety of the POGOProtos and drop them in here?
Would the existing structure support doing that, or would that be a very large change, given that the proto files seem to be somewhat regularly being updated?
from poke-api.
Compiling the protos is quite straight forward, I would need to make sure the existing structure still works with the new protos (it'll be a case of making sure all the class names match, etc)
from poke-api.
@Icehawk78 @coalwater - New protobufs are now up and running, let me know if there are any issues.
I've tagged it as 0.0.3, if something does not work then revert to 0.0.2 and let me know. I've had to use b2c48b17b560dc3d259d50a8afa1ef4199170bc4 @ POGOProtos while also adding a missing import on GetIncensePokemonResponse.proto
. I will use the very latest protobufs once that repository has been fixed (there's quite some stuff broken now apparently). We're only a couple commits behind however, so everything should be good.
from poke-api.
Related Issues (20)
- Does not re-set api_url HOT 5
- syntax error in gpsoauth HOT 1
- Adding proxy support to HTTPClient HOT 7
- Encryption HOT 5
- Is it possible to set the location to a specific latitude and longitude? HOT 1
- Revamp README into a proper Wiki HOT 1
- get_map_objects always returns with empty pokemon arrays HOT 5
- Trying to understand fetch_ticket HOT 7
- Whats the difference between wild and catchable pokemons? HOT 11
- Locating pokestops
- Update signature and allow custom data HOT 6
- Getting unknown type: size_t input_size HOT 1
- Unkown proto fault when using @client.call or @client.login method HOT 8
- gpsoauth is not compatible with ruby 2.0.0 HOT 16
- undefined method `to_h' for [["error", "invalid_grant"]]:Array HOT 6
- Create a chat at Gitter? HOT 2
- 403 HOT 2
- Any chance of a 0.43.x API update? HOT 2
- S2 geometry library porting HOT 1
- wrong S2 cell ID for given latitude and longitude HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poke-api.