Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

chuajiesheng/ogoogle-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ogoogle-api

A OCaml binding for google-api-javascript-client done via Js_of_OCaml library

##Installation make; make install

##Dependency

  1. lwt ( >= 2.4 )
  2. deriving-ocsigen
  3. 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

  1. If you encounter any issue during the build process, try "make distclean" to update the .depend files.
  2. As the library currently bind the basic authentication function, API-specific function would still need to be done via Js.Unsafe.fun_call
  3. 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.

About

js_of_ocaml binding for google-api-javascript-client (https://developers.google.com/api-client-library/javascript/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages