Skip to content
This repository

The Lokad forecasting capabilities are now offered through Salescast

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 dot-net-rest
Octocat-spinner-32 java
Octocat-spinner-32 .gitignore
Octocat-spinner-32 ReadMe.markdown
ReadMe.markdown

WARING: The Forecasting API of Lokad is being phased out December 31st, 2013. As a replacement, we encourage the community to transfer data through FTP following the format guidelines http://www.lokad.com/salescast-tsv-schema

The Forecasting Client is a stand-alone .NET wrapper library around the REST Forecasting API v3.

Sample usage (C#)

// Initialization with the API key of Lokad
var client = new ForecastingClient(myApiKey);

// Create a new dataset (no effect if it exists already)
var container = new Dataset { Name = "mydata", Period = "week", Horizon = 4 };
client.InsertDataset(container); 

// Update or Insert time-series
var series = new TimeSerie[] { /* snipped */ };
client.UpsertTimeSeries("mydata", series, false); // merge=false

// Wait until forecasts are ready, and then download forecasts
var forecasts = client.GetForecasts("mydata", series);

Resources

Something went wrong with that request. Please try again.