Created
August 18, 2009 23:19
-
-
Save veezus/170042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can use either http://vurl-staging.heroku.com or http://vurl.me for the server name. | |
veez ~ $ curl --data vurl[url]=http%3A%2F%2Fthing.com http://vurl-staging.heroku.com/vurls.xml | |
<?xml version="1.0" encoding="UTF-8"?> | |
<vurl> | |
<clicks-count type="integer">0</clicks-count> | |
<created-at type="datetime">2009-08-18T19:17:26-04:00</created-at> | |
<description></description> | |
<id type="integer">18</id> | |
<ip-address>127.0.0.1</ip-address> | |
<keywords>sue herber, miniature, miniatures, dollhouse, doll house</keywords> | |
<slug>AR</slug> | |
<title>Welcome to Thing.com</title> | |
<updated-at type="datetime">2009-08-18T19:17:26-04:00</updated-at> | |
<url>http://thing.com</url> | |
<user-id type="integer">26</user-id> | |
</vurl> | |
The ID returned is 18. We can look up the vurl this way: | |
veez ~ $ curl http://vurl-staging.heroku.com/vurls/18.xml | |
<?xml version="1.0" encoding="UTF-8"?> | |
<vurl> | |
<clicks-count type="integer">0</clicks-count> | |
<created-at type="datetime">2009-08-18T19:17:26-04:00</created-at> | |
<description></description> | |
<id type="integer">18</id> | |
<ip-address>127.0.0.1</ip-address> | |
<keywords>sue herber, miniature, miniatures, dollhouse, doll house</keywords> | |
<slug>AR</slug> | |
<title>Welcome to Thing.com</title> | |
<updated-at type="datetime">2009-08-18T19:17:26-04:00</updated-at> | |
<url>http://thing.com</url> | |
<user-id type="integer">26</user-id> | |
</vurl> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment