PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

How to use google email and password to login

Open lzj0718 opened this issue 10 years ago • 16 comments

How to use google email and password to auto login?

lzj0718 avatar Aug 03 '16 04:08 lzj0718

PokemonGo(new GoogleAutoCredentialProvider(httpClient, username, password), httpClient);

a4andy avatar Aug 03 '16 06:08 a4andy

thanks ,How to get the attribute latitude,longitude and expirationTimestamp by nearby Pokemon ?

lzj0718 avatar Aug 03 '16 06:08 lzj0718

Read the readme, shows you how to get nearby catchable pokemon.

a4andy avatar Aug 03 '16 07:08 a4andy

Thanks,but I use the api go.getMap().getCatchablePokemon() ,the method return 0 size List. I had set location by go.setLocation(37.7879938, -122.4074374,0);

lzj0718 avatar Aug 03 '16 08:08 lzj0718

@lzj0718 the radius is very small. You should try more different locations.

FabianTerhorst avatar Aug 03 '16 12:08 FabianTerhorst

OK,Thanks! I want to know the attribute cp and level of catchablePokemon ,How can I get it?

lzj0718 avatar Aug 03 '16 14:08 lzj0718

encounter it, then cast EncounterResult

DrakeSharp avatar Aug 03 '16 14:08 DrakeSharp

I import the jar by moven. and I write the pom.xml content with
com.github.Grover-c13 PokeGOAPI-Java a273fd71e4

the version "a273fd71e4" is latest submission,but error "Missing artifact svarzee.gps:gpsoauth:jar:0.3".

if the version is "0.3" ,Can run correctly.

lzj0718 avatar Aug 03 '16 15:08 lzj0718

@lzj0718 you have to add jcenter() to your repositorys

FabianTerhorst avatar Aug 03 '16 15:08 FabianTerhorst

@lzj0718 I'm having the same issue

eatyours0up avatar Aug 05 '16 01:08 eatyours0up

https://bintray.com/bintray/jcenter (Click the "Set me up" wrench icon in the top right)

or

https://jitpack.io/#maven group: com.github.svarzee artifact: gpsoauth-java tag: v0.3.0

should be enough to get it working in Maven

AbandonedCart avatar Aug 05 '16 01:08 AbandonedCart

@LoungeKatt Got it!, thanks

eatyours0up avatar Aug 05 '16 01:08 eatyours0up

Could someone explain to me how to increase my radius? I've used multiple latitude and longitude but I'm still getting 0 pokemon nearby. I'm able to get the players inventory, etc. so I know im able getting data back

eatyours0up avatar Aug 05 '16 03:08 eatyours0up

@eatyours0up https://github.com/Grover-c13/PokeGOAPI-Java/issues/486

It is usually better to try to find a similar issue, or post a new one if there are none that are similar. It makes it easier for people with the same issue or an answer to find it.

AbandonedCart avatar Aug 05 '16 04:08 AbandonedCart

thanks

eatyours0up avatar Aug 05 '16 04:08 eatyours0up

Revolved.

vmarchaud avatar Aug 06 '16 10:08 vmarchaud