directed-edge
Bindings for the Directed Edge Web-services API
Usage
You should have gotten a user name and password from Directed Edge when you signed up for an account. If you don’t have one now, you can get one at:
You’ll use those when instantiating a Directed Edge database object, which will be the hub for other operations:
DE_USER = 'testaccount'
DE_PASS = '1234567890abcd'
database = DirectedEdge::Database.new(DE_USER, DE_PASS)
From there you can create items:
item1 = DirectedEdge::Item.new(database, 'item_1')
item2 = DirectedEdge::Item.new(database, 'item_2')
Push them over to the Directed Edge web service:
item1.save
item2.save
And do stuff with them, like set properties, tags, link them to other items:
item1['picture'] = 'http://foo.bar.com/1.jpg'
item1.add_tag('product')
item1.link_to(item2)
item1.save
There’s more info on the Directed Edge developer site:
Copyright
Copyright © 2009-2010 Directed Edge, Inc. See LICENSE for details.