[powershop-developers] Java Powershop API

51 views
Skip to first unread message

Tim

unread,
May 10, 2010, 3:03:32 AM5/10/10
to Powershop Developers
Hi Everyone,

I've almost completed a Java API - it's at the stage where it might be
useful anyway.

Currently it can:

* Connect to Powershop
* Do the oAuth verification thing
* Get Customer Information

It even caches oAuth secrets so that you only need to verify it once
for you account.

It's designed for a client-side app. If anyone's interested, I'll
flick it through. Naturally, I want to get some more functionality
working before releasing it into the wild!

Tim

--
You received this message because you are subscribed to the Google Groups "Powershop Developers" group.
To post to this group, send email to powershop-...@googlegroups.com.
To unsubscribe from this group, send email to powershop-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/powershop-developers?hl=en.

ziglionz

unread,
May 10, 2010, 5:21:07 PM5/10/10
to Powershop Developers
me too :-)

Ari Sargent

unread,
May 10, 2010, 5:35:33 PM5/10/10
to Powershop Developers
Thanks Guys. When you are ready to release your code into the wild I
am happy to upload it here, or link through to your codebase somewhere
else.

Ari.

Tim Wright

unread,
May 12, 2010, 1:43:18 AM5/12/10
to Powershop Developers

Hi everyone,

Just so you know, there'll be a couple of week delay on releasing my Java library. For various reasons that I'm still annoyed about, my previous power company decided to send me a final bill and then switch me back. This means that for the next couple of weeks I don't have a powershop account and can't do any testing!

What would be a great help is if someone could send me:

* Sample XML returned by the products api call
* Sample XML returned by the readings API call

(I have a sample customer one already).

That will let me create automated tests for loading the XML into Java objects - then I can sensibly refactor the code.

Thanks!

Tim
--
Tim
http://nz.linkedin.com/in/drtimwright

Nik Wakelin

unread,
May 12, 2010, 2:05:24 AM5/12/10
to Tim Wright, Powershop Developers
Can't you get sample responses from your test account? 

Nik

Tim Wright

unread,
May 12, 2010, 2:10:54 AM5/12/10
to Nik Wakelin, Powershop Developers

I was just using my real account - couldn't get the test site to work for me :)

Tim

Mike Beattie

unread,
May 12, 2010, 2:34:13 AM5/12/10
to Tim Wright, Powershop Developers
On Wed, May 12, 2010 at 5:43 PM, Tim Wright <drtim...@gmail.com> wrote:
> For various reasons that I'm still annoyed about, my previous power
> company decided to send me a final bill and then switch me back.

Surely they're not really allowed to do that? I'd be raising hell with
them until they put it right, along with suitable compensation.

Mike.

Matt Dillon

unread,
May 12, 2010, 2:38:04 AM5/12/10
to Powershop Developers
Hi ya

Test accounts wont work on the live shop (different servers).

Cheers
Matt

On May 12, 6:10 pm, Tim Wright <drtimwri...@gmail.com> wrote:
> I was just using my real account - couldn't get the test site to work for me
> :)
>
> Tim
>
>
>
>
>
> On Wed, May 12, 2010 at 6:05 PM, Nik Wakelin <n...@codetocustomer.com> wrote:
> > Can't you get sample responses from your test account?
>
> > Nik
>
> > On 12/05/2010, at 5:43 PM, Tim Wright <drtimwri...@gmail.com> wrote:
>
> > Hi everyone,
>
> > Just so you know, there'll be a couple of week delay on releasing my Java
> > library. For various reasons that I'm still annoyed about, my previous power
> > company decided to send me a final bill and then switch me back. This means
> > that for the next couple of weeks I don't have a powershop account and can't
> > do any testing!
>
> > What would be a great help is if someone could send me:
>
> > * Sample XML returned by the products api call
> > * Sample XML returned by the readings API call
>
> > (I have a sample customer one already).
>
> > That will let me create automated tests for loading the XML into Java
> > objects - then I can sensibly refactor the code.
>
> > Thanks!
>
> > Tim
>
> >> <powershop-developers%2Bunsu...@googlegroups.com>
> >> powershop-develo...@googlegroups.com.
> >> > > For more options, visit this group athttp://<http://groups.google.com/group/powershop-developers?hl=en>
> >> groups.google.com/group/powershop-developers?hl=en.
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> Groups "Powershop Developers" group.
> >> > To post to this group, send email to
> >> <powershop-...@googlegroups.com>
> >> powershop-...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> <powershop-developers%2Bunsu...@googlegroups.com>
> >> powershop-develo...@googlegroups.com.
> >> > For more options, visit this group athttp://<http://groups.google.com/group/powershop-developers?hl=en>
> >> groups.google.com/group/powershop-developers?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Powershop Developers" group.
> >> To post to this group, send email to
> >> <powershop-...@googlegroups.com>
> >> powershop-...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> <powershop-developers%2Bunsu...@googlegroups.com>
> >> powershop-develo...@googlegroups.com.
> >> For more options, visit this group at
> >> <http://groups.google.com/group/powershop-developers?hl=en>
> >>http://groups.google.com/group/powershop-developers?hl=en.
>
> > --
> > Tim
> > <http://nz.linkedin.com/in/drtimwright>
> >http://nz.linkedin.com/in/drtimwright
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Powershop Developers" group.
> > To post to this group, send email to powershop-...@googlegroups.com
> > .
> > To unsubscribe from this group, send email to
> > powershop-develo...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/powershop-developers?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Powershop Developers" group.
> > To post to this group, send email to powershop-...@googlegroups.com
> > .
> > To unsubscribe from this group, send email to
> > powershop-develo...@googlegroups.com<powershop-developers%2Bun subs...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/powershop-developers?hl=en.
>
> --
> Timhttp://nz.linkedin.com/in/drtimwright
>
> --
> You received this message because you are subscribed to the Google Groups "Powershop Developers" group.
> To post to this group, send email to powershop-...@googlegroups.com.
> To unsubscribe from this group, send email to powershop-develo...@googlegroups.com.

Tim Wright

unread,
May 12, 2010, 3:36:41 AM5/12/10
to Mike Beattie, Powershop Developers

It's a long story. When I originally switched they offered me incentives to stay - which I accepted. Then the switch happened anyway and they sent me a final bill. I was quite happy either way so didn't follow it up. Several weeks later they switched me back. In the mean time, I'd started doing some programming with the API - it turns out that this has been so fun that it's actually a key feature for me!

Tim
--
Tim
http://nz.linkedin.com/in/drtimwright

Ari Sargent

unread,
May 12, 2010, 6:06:30 AM5/12/10
to Powershop Developers
Hi Tim,

I will send you some login details for the test server that you can
use for development/testing in the meantime.

Ari.

On May 12, 7:36 pm, Tim Wright <drtimwri...@gmail.com> wrote:
> It's a long story. When I originally switched they offered me incentives to
> stay - which I accepted. Then the switch happened anyway and they sent me a
> final bill. I was quite happy either way so didn't follow it up. Several
> weeks later they switched me back. In the mean time, I'd started doing some
> programming with the API - it turns out that this has been so fun that it's
> actually a key feature for me!
>
> Tim
>
>
>
> On Wed, May 12, 2010 at 6:34 PM, Mike Beattie <mike.zl...@gmail.com> wrote:
> > On Wed, May 12, 2010 at 5:43 PM, Tim Wright <drtimwri...@gmail.com> wrote:
> > > For various reasons that I'm still annoyed about, my previous power
> > > company decided to send me a final bill and then switch me back.
>
> > Surely they're not really allowed to do that? I'd be raising hell with
> > them until they put it right, along with suitable compensation.
>
> > Mike.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Powershop Developers" group.
> > To post to this group, send email to powershop-...@googlegroups.com
> > .
> > To unsubscribe from this group, send email to
> > powershop-develo...@googlegroups.com<powershop-developers%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/powershop-developers?hl=en.
>
> --
> Timhttp://nz.linkedin.com/in/drtimwright
>
> --
> You received this message because you are subscribed to the Google Groups "Powershop Developers" group.
> To post to this group, send email to powershop-...@googlegroups.com.
> To unsubscribe from this group, send email to powershop-develo...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/powershop-developers?hl=en.

Tim Wright

unread,
May 14, 2010, 11:58:26 PM5/14/10
to Ari Sargent, Powershop Developers
Hi everyone,

My Java library has now reached some degree of stability. I'll email it to Ari directly for upload. It'll be under a GPL license (the strict one - not the LGPL) - but feel free to talk to me if that doesn't work for your purposes.

I'm including a JAR file with all the classes and a test class that shows how to use it.

Tim
--
Tim
http://nz.linkedin.com/in/drtimwright
Reply all
Reply to author
Forward
0 new messages