The Web's Get/Set API

Setup

1. Register an Id
2. Set your Name/Value pair http://setgetgo.com/set.php?Id=Test&Name=TestName&Value=TestValue
3. Get your Value http://setgetgo.com/get.php?Id=Test&Name=TestName

Info

- Get/Set returns JSON text with details on success/failure.
- Get/Set both support JSONP callbacks for easy mashup integration (hurray!)
- Name can be 1 to 256 characters long
- Value can be 1 to 4096 16k characters long (POST is supported)
- info@setgetgo.com

Example Set/Get usage in JScript/JQuery

function Set(id, name, value) {
    var requestStr = 
        "http://setgetgo.com/set.php?Id=" + id 
        + "&Name=" + name 
        + "&Value=" + value;

    $.ajax({
        type: "GET",
        url: requestStr,
        dataType: "jsonp",
        jsonpCallback:'SetComplete'
    });
}

function SetComplete(msg) {
    // that's it!
}

function Get(id, name) {
    var requestStr = "http://setgetgo.com/get.php?Id="+id;

    if (name != null) {
        requestStr = requestStr + "&Name=" + name;
    }

    $.ajax({
        type: "GET",
        url: requestStr,
        dataType: "jsonp",
        jsonpCallback: 'GetComplete'
    });
}

function GetComplete(msg) {
    // easy huh?
}

Sites & Services Built Upon SetGetGo


Have you built something quick and dirty, possibly even slow and clean, on top of setgetgo? Email me and let me know about it.




license privacy