# Tutorial for Cohttp-lwt as API client

**URL:** <https://discuss.ocaml.org/t/tutorial-for-cohttp-lwt-as-api-client/2746>\
**Category:** Learning\
**Created:** [October 21, 2018, 4:11pm UTC](https://discuss.ocaml.org/t/tutorial-for-cohttp-lwt-as-api-client/2746 "2018-10-21T16:11:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![abhi18av](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/abhi18av/32/1262_2.png) [@abhi18av](https://discuss.ocaml.org/u/abhi18av)\
**Post date:** [October 21, 2018, 4:11pm UTC](https://discuss.ocaml.org/t/tutorial-for-cohttp-lwt-as-api-client/2746/1 "2018-10-21T16:11:24Z")

</div>

Hi everyone,

I was trying to get started with practical `OCaml` via writing API clients and decided to experiment with [https://deckofcardsapi.com/](https://deckofcardsapi.com/) as a starting point to discover the libraries.

However, the only pieces of documentation I’ve come across for these are the following

- [How to write a simple web client?](https://discuss.ocaml.org/t/how-to-write-a-simple-web-client/1756)
- The `client_lwt.ml` example in the `cohttp` github repo

But unfortunately, I haven’t quite been able to make my way through these. So, I decided to ask for help from the `OCaml` community regarding the same.

Could you guide me a bit here ?

---

_[View the full topic](https://discuss.ocaml.org/t/tutorial-for-cohttp-lwt-as-api-client/2746)._
