stilv
-
Posts
4 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by stilv
-
-
on the user panel on left of post, you see the bit url shortener, that what im looking to replace with mine http://droid.ws/*
-
This should be rather simple. Create a new workflow using, Templates->Keyword to Script to Notification. Set your keyword and titles appropriately, in the script, add...
shorturl=$(curl -s http://droid.ws/api.php?url={query}) echo $shorturl
Then in the notification, set your title and for the Text, put: {query}
Then one more step to make this a little nicer. Click the + in the top right of the workflow area, select Output->Copy to Clipboard. Double click it, in the big text box, put: {query}. Then mouse over your Run Script module, a little tab should appear on the right side, click that and drag it to your Copy to Clipboard output to connect them. Then all you would do is: keyword <url>
I see, should it look like this? im not a good coder
<script>shorturl=$(curl -s http://droid.ws/api.php?url={query})echo $shorturl</script><input onclick = "this.select()" type = 'text' id = "shorturl" class="sturl_field span5" ><a class="btn btn-primary btn-large"><span id="flashbtn">Copy Me!</span></a> -
i run my own android url shortener and like to have an java output i can add to my other sites
site: http://droid.ws
api: http://droid.ws/api.php?url=
demo: http://droid.ws/api.php?url=http://droidtweak.com
any help will be great
Need help with my own url shortener droid.ws
in Workflow Help & Questions
Posted
Just created this and seems to be working but needs to be cleaner looking, some how i cant add input code
working: http://stilv.com/test.php