#ogoogle-api
A OCaml binding for google-api-javascript-client done via Js_of_OCaml library
##Installation make; make install
##Dependency
- lwt ( >= 2.4 )
- deriving-ocsigen
- ocamlfind
Best to do the installation via OPAM in case you have dependency issues.
##Usage Code; Link to ogoogle-api package; Generate .js
ocamlfind ocamlc -annot -linkpkg -package js_of_ocaml -package js_of_ocaml.syntax -package lwt -package ogoogle-api -syntax camlp4o -o example.ml
js_of_ocaml example.byte -pretty
rm example.byte
Link to .JS
<script src="https://apis.google.com/js/client.js"></script>
<script src="example.js"></script>
##Example There is a example for every method present in the binding. See examples repository
##Notes
- If you encounter any issue during the build process, try "make distclean" to update the .depend files.
- As the library currently bind the basic authentication function, API-specific function would still need to be done via
Js.Unsafe.fun_call
- At the time of the writing, the API by Google is still in beta, in a issue of a break, please raise a issue regarding it.