A model ID and application secret must be sent in the request headers in Precondition: order to authenticate with the Google Predictive API. An HttpWebResponse object is returned to the caller. This object contains the Postcondition: JSON formatted response containing the model update data. The caller is responsible for deserializing the response. HttpWebResponse AuthorizeUser() This operation connects to the Google Predictive API using the secrets for the Description: user. the user has already registered at Google Predictive to use its API. Precondition: An HttpWebResponse object is returned to the caller. This object contains the Postcondition: JSON formatted response containing the authnitcation ID. The caller is responsible for deserializing the response. Prediction_Client_Service::Prediction_Client_Service_Interface Interface Signature public interface IPredectionClientService { public PredictionFeedback Predict() public int UpdateModel(string modelId) } Operation Definitions PredictionFeedback Predict() This operation is doing the actual prediction by sending the data to Google Description: Predictive Client and retrieving the results All parameters are set such as action, model name and prediction data Precondition: The model feedback is stored in PredictionFeedback object Postcondition: int UpdateModel(string modelId) This operation updates the model at Google predictive with new data Description: The model already exists at Google Predictive Precondition:
Precondition: A model ID and application secret must be sent in the request headers in order to authenticate with the Google Predictive API. Postcondition: An HttpWebResponse object is returned to the caller. This object contains the JSON formatted response containing the model update data. The caller is responsible for deserializing the response. HttpWebResponse AuthorizeUser() Description: This operation connects to the Google Predictive API using the secrets for the user. Precondition: the user has already registered at Google Predictive to use its API. Postcondition: An HttpWebResponse object is returned to the caller. This object contains the JSON formatted response containing the authnitcation ID. The caller is responsible for deserializing the response. Prediction_Client_Service::Prediction_Client_Service_Interface Interface Signature public interface IPredectionClientService { public PredictionFeedback Predict() public int UpdateModel(string modelId) } Operation Definitions PredictionFeedback Predict() Description: This operation is doing the actual prediction by sending the data to Google Predictive Client and retrieving the results Precondition: All parameters are set such as action, model name and prediction data Postcondition: The model feedback is stored in PredictionFeedback object int UpdateModel(string modelId) Description: This operation updates the model at Google predictive with new data Precondition: The model already exists at Google Predictive