Fwd: [Pharo-users] REST client hints

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: [Pharo-users] REST client hints

Tobias Pape

FYI, Paul has made a cross-platform wrapper for web api clients
 :)

> Begin forwarded message:
>
> From: Paul DeBruicker <[hidden email]>
> Subject: Re: [Pharo-users] REST client hints
> Date: 5. Dezember 2017 um 19:46:48 MEZ
> To: [hidden email]
> Reply-To: Any question about pharo is welcome <[hidden email]>
>
> Hi Ben,
>
>
> I've made a few REST Clients
>
> http://smalltalkhub.com/#!/~pdebruic/Stripe
> http://smalltalkhub.com/#!/~pdebruic/Tropo
> http://smalltalkhub.com/#!/~pdebruic/SegmentIO
>
> And the elasticsearch one but its been advanced mostly lately by Sho Yoshida
> (https://github.com/newapplesho) here
> https://github.com/newapplesho/elasticsearch-smalltalk
>
> He has also made REST clients for Twilio, AWS, SendGrid, Salesforce, and
> Mixpanel among others.
>
> Norbert Hartl made one for Mandrill (Mailchimps transactional email service)
> http://smalltalkhub.com/#!/~NorbertHartl/Mandrill
>
> And Francois Stephany made one for Postmark (another transactional email
> service) http://smalltalkhub.com/#!/~PharoExtras/Postmark
>
>
> So those are some examples of different approaches.  
>
>
vvvvvvvvvvvvvvvvvvvvvvvvvvvvv

> I also started/made a cross platform web client wrapper (just wraps calls to
> ZnClient or WebClient on Squeak)
> http://smalltalkhub.com/#!/~pdebruic/HTTPAPIClient
>
> But IIRC I only used it in the Stripe API client.  
>

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>
> Hope this gives you some ideas about how to approach your own solution
>
> Paul
>
>
>
> Ben Coman wrote
>> I'm just about to write my first client interface to a REST service.
>> In some respects I understand this is as simple as doing GET responses
>> using Zinc,
>> but I'm inquiring about tutorials or libraries that might help.  Most
>> of the stuff turned up by searches is about server-side of REST.
>>
>> cheers -ben
>
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>


Reply | Threaded
Open this post in threaded view
|

Re: Fwd: [Pharo-users] REST client hints

Ben Coman


On 12 December 2017 at 15:41, Tobias Pape <[hidden email]> wrote:

FYI, Paul has made a cross-platform wrapper for web api clients
 :)


Thanks for the tip. I only skimmed it before since it didn't have much in depth about JSON parsing.
Now I've got that sorted I'll go back and have another look.
 

> Begin forwarded message:
>
> From: Paul DeBruicker <[hidden email]>
> Subject: Re: [Pharo-users] REST client hints
> Date: 5. Dezember 2017 um 19:46:48 MEZ
> To: [hidden email]
> Reply-To: Any question about pharo is welcome <[hidden email]>
>
>
vvvvvvvvvvvvvvvvvvvvvvvvvvvvv

> I also started/made a cross platform web client wrapper (just wraps calls to
> ZnClient or WebClient on Squeak)
> http://smalltalkhub.com/#!/~pdebruic/HTTPAPIClient


I noticed some minor anomalies:
* HTTPAPIClient >> get:data:   
  calls   #get:contents:   which seems to not exist

* HTTPAPIClient >> responseStatusFor:
  calls   #headResponseStatusFor:   which seems to not exist

That is with "ConfigurationOfHTTPAPIClient load"
from ConfigurationOfHTTPAPIClient-PaulDeBruicker.10
on Pharo 6.1.

cheers -ben

>
> But IIRC I only used it in the Stripe API client.
>

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Hope this gives you some ideas about how to approach your own solution
>
> Paul
>
>
>
> Ben Coman wrote
>> I'm just about to write my first client interface to a REST service.
>> In some respects I understand this is as simple as doing GET responses
>> using Zinc,
>> but I'm inquiring about tutorials or libraries that might help.  Most
>> of the stuff turned up by searches is about server-side of REST.
>>
>> cheers -ben
>
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>