The following Open Data Tables provide examples of INSERT:
To better understand the examples presented in this section, refer first to Using YQL Open Data Tables and Executing JavaScript in Open Data Tables.
The following Open Data Table allows you to shorten a long URL into a bit.ly link.
This table showcases the following:
value bindings
Example Statement:
INSERT INTO bitly.shorten (login, apiKey, longUrl) VALUES ('USERNAME', 'API_KEY', 'http://yahoo.com')
Open Data Table Source:
Run this example on the YQL console
To run the example, you must replace USERNAME and API_KEY in
the YQL statement with your actual bit.ly username and API key (available through your
bit.ly account page).
The following Open Data Table allows you to post to your WordPress blog.
This table showcases the following:
executeExample Statement:
USE "http://www.datatables.org/wordpress/wordpress.post.xml"; INSERT into wordpress.post (title, description, blogurl, username,
password) values ("Test Title", "This is a test body", "http://your_wordpress_blog_site.com", "your_wordpress_username", "your_wordpress_password")
Open Data Table Source:
Run this example in the YQL Console. Be sure to use your blog's URL, username, and password as values for the blogurl, username, and password keys.