rubenvereecken / pokemongo-api

Pokemon Go API for Python
Other
358 stars 120 forks source link

Add support for claiming in-game usernames #42

Open vmunich opened 8 years ago

vmunich commented 8 years ago

Usage:

After session = poko_session.authenticate():

session.claimCodename('desired_username')
codename: "desired_username"
user_message: "Codename is claimed."
is_assignable: true
status: SUCCESS
rubenvereecken commented 8 years ago

What do you say we switch to calling it Username instead? I'll probably send in a whooole bunch of renames to the protobuf repository anyway. A lot of the message names honestly suck.

Otherwise this is looking great!

vmunich commented 8 years ago

That's fine :) I called it like the other methods were called. One thing I realized is, you can change your username whenever you want with this call, even set your username to a username that's already being used. The status returns ALREADY_IN_USE but it changes the username anyway :D

vmunich commented 8 years ago

Removed the conflicting code.

dnsBlah commented 8 years ago

@vmunich Unfortunally it's solved now, if there already is a codename set, you can't change it anymore. You can only change 1 time now :(

vmunich commented 8 years ago

@dnsBlah yea that's sadly true :(

dmadisetti commented 8 years ago

So this is no longer valid?