The Movie4Mi application program interface (API) is a free and easy to use system for web developers to make their site more engaging and informative for their users. Using this API, Movie4Mi ratings can easily be integrated into a web based application.

There are two operations (named-key) supported by the API. Responses are returned via the standard JSON format.
Using Http GET request via Javascript XMLHttpRequest, PHP cURL and others are acceptable methods to query the API

This calls Movie4Mi to calculcate the user's unique rating for the movie based on the Movie ID
and Facebook ID. It is best to call this operation asynchronously with the program flow.

{user-id} = The unique numeric ID associated with the user's account. It can either be a Facebook or Google account that
must be specified in the usertype field otherwise the default is Facebook. This number must be retrieved by the requesting
website via those respective APIs before calling this operation.

{client} = This value can either be "facebook" or "google" depending on what type of user the requesting website is targeting.

{movie-id} = The unique numeric ID associated with the movie. This can be retrieved by operation one first.

Generally speaking, there is no one way to integrate Movie4Mi ratings into a website, however we do require web developers to use our branded logo when
requesting ratings from the Movie4Mi API and displaying them to users.

You can download a high resolution version of this logo here. Download(png)

Example Usage

FAQ

How do I get my user's Facebook ID?

To get your users Facebook IDs, you must first register your web application as an App on Facebook. Once you do that and your users have logged into your site via Facebook,
you will be able to automatically query Facebook to obtain the Facebook user ID via Javascript, PHP and other methods. Please visit the official Facebook Developers Guide for more
information.

How do I get my user's Google ID?

Similarly to obtaining the Facebook ID, you must first register your web application as an App on the Google Developers Console. Once you do that and your users have logged into your site via Google Login,
you will be able to automatically query Google to obtain the Google user ID via Javascript, PHP and other methods. Please visit the official Google Sign-In Developers Guide for more
information.