Java API

8 views
Skip to first unread message

Parminder Singh

unread,
Oct 8, 2011, 4:10:28 PM10/8/11
to hyperpublic-a...@googlegroups.com
Here's another Java wrapper:

Usage is very simple:
Example to get:
HPClient client = HPClient.create(YOUR_CLIENT_ID,YOUR_SECRET);
List<Place> places = client.findPlaces("lat=40.7&amp;lon=-74.0");

Please try and let me know your feedback.

I'll try and keep improving the API as we go along.

On Fri, Oct 7, 2011 at 11:59 AM, N. Peeters <peet...@gmail.com> wrote:
Hi there,
I created a Java API wrapper. Maybe useful for some of your users.
It's still a bit rough but it should get most people started.
https://github.com/peetersn/Java-hyperpublic-api-wrapper
Have fun.
Cheers,
Nicolas
On Oct 7, 1:48 pm, Imran Khawaja <imra...@gmail.com> wrote:
> Ya, I'd be interested. Can you post somewhere on github?
>
> Thanks
> imran
>
>
>
>
>
>
>
>
>
> On Fri, Oct 7, 2011 at 3:09 AM, N. Peeters <peete...@gmail.com> wrote:
> > Like I said in a reply, I wrote a Java client that works. Interested?
>
> > On Oct 2, 4:59 pm, Imran Khawaja <imra...@gmail.com> wrote:
> >> Any idea when that wrapper will be available? In the meantume what did you
> >> do to ignore the cert? I tried to add it to my truststore but thay didn't
> >> work.
>
> >> Thanks
> >> On Oct 2, 2011 8:33 AM, "Parminder Singh" <parminde...@gmail.com> wrote:
>
> >> > I'm working on a java wrapper.
>
> >> > We get that ssl exception because of the server cert. For now I've written
> >> a
> >> > workaround that basically ignores the error and goes ahead with the
> >> > handshake.
> >> > On Oct 1, 2011 10:58 PM, "Eric Tang" <et...@hyperpublic.com> wrote:
>
> >> >> Btw, for the 401 error on curl, if you can paste your command, I'll have
> >> a
> >> >> better idea of how to solve it.
>
> >> >> Eric
>
> >> >> On Oct 1, 2011, at 10:06 PM, imrank1 <imra...@gmail.com> wrote:
>
> >> >> > Hi :
> >> >> > First of all thanks for the awesome api!
>
> >> >> > Has anyone tried connecting to the api via Java? I keep getting
> >> >> > javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
> >> >> > errors. I tried this from Android and from a groovy console. I know
> >> >> > there are ways to trust all certificates but I feel that is not the
> >> >> > real solution. I also get a 401 response when I try to perform a
> >> >> > request using curl. The same request works fine in a browser.
>
> >> >> > Thanks for the help.
>
> --
> Imran

Reply all
Reply to author
Forward
0 new messages