What is the main purpose of tinywebdb?

What is the main purpose of tinywebdb?

TinyWebDB

The TinyWebDB component communicates with a Web service to store and retrieve information. Although this component is usable, it is very limited and meant primarily as a demonstration for people who would like to create their own components that talk to the Web. The accompanying Web service is at (http://tinywebdb.appinventor.mit.edu). The component has methods to store a value under a tag and to retrieve the value associated with the tag. The interpretation of what “store” and “retrieve” means is up to the Web service. In this implementation, all tags and values are strings (text). This restriction may be relaxed in future versions.

Properties

ServiceURL

Specifies the URL of the Web service. The default value is the demo service running on App Engine.

Events

GotValue(tagFromWebDB,valueFromWebDB)

Indicates that a GetValue server request has succeeded.

ValueStored()

Event indicating that a StoreValue server request has succeeded.

WebServiceError(message)

Indicates that the communication with the Web service signaled an error.

Methods

GetValue(tag)

GetValue asks the Web service to get the value stored under the given tag. It is up to the Web service what to return if there is no value stored under the tag. This component just accepts whatever is returned. The GotValue event will be run on completion.

StoreValue(tag,valueToStore)

Sends a request to the Web service to store the given valueToStore under the given tag. The ValueStored event will be run on completion.