Bill Hawes
on Fri Oct 27 2006 11:06:52 GMT+0100 (GMT)
We have now released a client library to enable you to access zimki from applications written using the Microsoft .NET Framework for Windows or mono for Linux, Mac, etc.
This gives a simple object-oriented interface, with which you can create, retrieve, update and delete class instances and files in your zimki realm. You can also make any zimki XML API call, including those you have published from your realm.
A c# program to list files in your realm is as simple as:
using System;
using Fotango.Zimki.Client;
class Program
{
static string url = "http://service.zimki.com/zimki";
static string apiKey = "my-api-key";
static string userName = "my-user-name";
static string password = "my-password";
public static void Main(string[] args)
{
using (ClientSession session = new ClientSession(url, apiKey))
{
session.Authenticate(userName, password);
foreach (File file in session.SearchFiles())
{
Console.WriteLine(file.Description);
}
}
}
}
Go to the Zimki.NET home page for more information, including links to downloads, documentation and a brief tutorial.
|