GithubHelp home page GithubHelp logo

gv4j's Introduction

About

Build Status

Unofficial Google Voice API for Java created by reverse engineering the Google Voice mobile site.

See the Wiki for more details.

Caveats

Since Google does not provide an official API for Google Voice, the web requests which GV4J relies on could break at anytime and without warning.

gv4j's People

Contributors

twyatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gv4j's Issues

Hidden Password Input

When trying to log in, I'm getting a

Caused by: java.io.IOException: Missing gvx cookie.
	at com.brewengine.gv4j.GV.login(GV.java:118)
	at com.brewengine.gv4j.GV.login(GV.java:80)

Taking a quick peek at the source code, they seem (as you've advertised up front) to have changed things just a bit.

It seems like the code is no longer picking up the password input. It's looking for an input with the name of Passwd, but there is none. Hopefully you'll forgive the screenshot for the fact that I highlighted the important part.
Changed field

Is this a deal-breaker because it's hidden or can this be fixed?

Setting.java:31 - NullPointerException

First of all, big thanks for your work! It's a great effort.

There is a minor bug, please resolve it.

Setting.java:31 -
phone.isEnabled = !disabledList.contains(phone.id);

If number of disabled phones is zero, then disabledList is null & causes the test to stop/fail.

And also, I will like to know if we can receive & send sms with this api?
Are you going to add this to API?
If yes, how much time will it take?
If no, then can you please guide me on how can I do it myself?

My email ID is [email protected], Please reply or post a comment for this issue.

Built gv4j, but unable to use.

Hi!

I'm on Windows trying to use your wonderful creation.

I followed your instructions in How to Install and got this output. It looks like the export TERM=dumb and java -XMx32m -version commands didn't work as expected.

However a gv4j.jar seemed to have been built and so I installed it in my local maven repository using the following command: mvn install:install-file -Dfile=C:\Users\BTUREK\IdeaProjects\twyatt\gv4j\build\libs\gv4j.jar -DgroupId=com.github.twyatt -DartifactId=gv4j -Dversion=0.0.1 -Dpackaging=jar

If you take a look at my project you'll see that I'm able to reference the GV object and it compiles, but when I run it I get this error:

"C:\Program Files (x86)\Java\jdk1.8.0_144\bin\java" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.4\lib\idea_rt.jar=54310:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.4\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\charsets.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\deploy.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\access-bridge-32.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\cldrdata.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\dnsns.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\jaccess.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\jfxrt.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\localedata.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\nashorn.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\sunec.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\sunjce_provider.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\sunmscapi.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\sunpkcs11.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\ext\zipfs.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\javaws.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\jce.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\jfr.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\jfxswt.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\jsse.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\management-agent.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\plugin.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\resources.jar;C:\Program Files (x86)\Java\jdk1.8.0_144\jre\lib\rt.jar;C:\Users\BTUREK\IdeaProjects\SweepTake\target\classes;C:\Users\BTUREK\.m2\repository\com\github\twyatt\gv4j\0.0.1\gv4j-0.0.1.jar;C:\Users\BTUREK\.m2\repository\com\google\code\gson\gson\2.8.2\gson-2.8.2.jar;C:\Users\BTUREK\.m2\repository\com\google\guava\guava\23.0\guava-23.0.jar;C:\Users\BTUREK\.m2\repository\com\google\code\findbugs\jsr305\1.3.9\jsr305-1.3.9.jar;C:\Users\BTUREK\.m2\repository\com\google\errorprone\error_prone_annotations\2.0.18\error_prone_annotations-2.0.18.jar;C:\Users\BTUREK\.m2\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;C:\Users\BTUREK\.m2\repository\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;C:\Users\BTUREK\.m2\repository\org\jsoup\jsoup\1.10.3\jsoup-1.10.3.jar;C:\Users\BTUREK\.m2\repository\com\squareup\okhttp3\okhttp\3.9.0\okhttp-3.9.0.jar;C:\Users\BTUREK\.m2\repository\com\squareup\okio\okio\1.13.0\okio-1.13.0.jar" SweepTake
App starting...
Exception in Application start method
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
   at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
   at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: com/squareup/okhttp/OkHttpClient
   at com.brewengine.gv4j.GV.<init>(GV.java:21)
   at com.brewengine.gv4j.GV.<init>(GV.java:27)
   at SweepTake.start(SweepTake.java:12)
   at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
   at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
   at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
   at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
   at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
   at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
   ... 1 more
Caused by: java.lang.ClassNotFoundException: com.squareup.okhttp.OkHttpClient
   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   ... 12 more

Process finished with exit code 1

It seems to not be able to find the OkHttpClient, but I'm confused as how that is if I included OkHttpClient as a dependency in my POM.xml

 <dependencies>
        <!--Installed using `mvn install:install-file -Dfile=C:\Path\to\gv4j.jar -DgroupId=com.github.twyatt -DartifactId=gv4j -Dversion=0.0.1 -Dpackaging=jar`-->
        <dependency>
            <groupId>com.github.twyatt</groupId>
            <artifactId>gv4j</artifactId>
            <version>0.0.1</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.8.2</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>23.0</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.jsoup/jsoup -->
        <dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
            <version>1.10.3</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
        <dependency>
            <groupId>com.squareup.okhttp3</groupId>
            <artifactId>okhttp</artifactId>
            <version>3.9.0</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/com.squareup.okio/okio -->
        <dependency>
            <groupId>com.squareup.okio</groupId>
            <artifactId>okio</artifactId>
            <version>1.13.0</version>
        </dependency>

    </dependencies>

I'm sure I'm doing something wrong. What could it be?

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.