1. REST client demo

I have put a REST client demo using my own libcurl and json wrappers on Github: https://github.com/jm-duro/rest_client

Jean-Marc

new topic     » topic index » view message » categorize

2. Re: REST client demo

jmduro said...

I have put a REST client demo using my own libcurl and json wrappers on Github: https://github.com/jm-duro/rest_client

Very nice!

FYI I'm planning to absorb almost everything from Euphoria MVC into the release of Euphoria 4.2. Specifically curl.e, json.e, and logger.e are all related to what you're doing here.

I'd be grateful to hear input you might have from your experience with this, as well as any ideas you might have for a general-purpose REST client library.

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: REST client demo

I did not play with curl.e and json.e from Euphoria MVC so I'm afraid I can't help much. I just tested MySQL and SQLite3 and of course logger about 6 monthes ago.

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

4. Re: REST client demo

jmduro said...

I did not play with curl.e and json.e from Euphoria MVC so I'm afraid I can't help much. I just tested MySQL and SQLite3 and of course logger about 6 monthes ago.

I just meant if you had any lessons from having made your own that might be worthwhile. No worries.

-Greg

new topic     » goto parent     » topic index » view message » categorize

5. Re: REST client demo

I built my own releases from scratch using the C source code cause I wanted to master every detail if something went wrong. I added some functions in curl.e which might be useful for beginners:

  • public function curl_get(atom curl, sequence url, sequence headers={})
  • public function curl_post(atom curl, sequence url, sequence headers, object body)
  • public function curl_put(atom curl, sequence url, sequence headers, object body)
  • public function curl_delete(atom curl, sequence url, sequence headers={})
  • public function curl_patch(atom curl, sequence url, sequence headers, object body)
  • public function curl_head(atom curl, sequence url, sequence headers={})
  • public function curl_options(atom curl, sequence url, sequence headers={})
  • public function curl_trace(atom curl, sequence url, sequence headers={})

Every request is logged. I use it to drive my pellet stove.

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu