Jump to content

WireHttp vs custom module?


pwFoo
 Share

Recommended Posts

At the moment I do some tests with a jsonapi and wrote a simple client before I found the WireHttp module:

https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/core/WireHttp.php

  1. jsonapi needs also PATCH (edit, update) and DELETE method. I opened an issue at github for that. Maybe Ryan could add these two methods.
     
  2. WireHttp isn't hookable. That was my second feature request, because it would be great to hook into the module to check response and renew the api token if needed. 

patch() and delete() could be added as hook or by extend the WireHttp class, but added as native feature would be great.

Anyone use the WireHttp class? I wrote a simple module to handle api requests before I found the WireHttp class. Would you recommend to switch to the WireHttp or use a custom json api module (based on file_get_contents() for example)?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...