| By Joe Pruitt | Article Rating: |
|
| June 9, 2009 07:05 AM EDT | Reads: |
14,995 |
Last week I posted a PowerShell function library for Microsoft’s newly introduced search engine at Bing.com. The function library was appropriately named PoshBing. There was a log of interest in the script so I quickly moved it off my blog and onto a CodePlex project under PoshBing.
Working on the command line is fun and all, but since I spend a good portion of my time accessing my twitter account, I figured it would be a bit of fun to integrate it with my previously released PoshTweet PowerShell twitter library.
So, after an hour or so of coding it up and creating the @askbing twitter account, I’ve got it up and running.
Using it is as simple as posting a message mentioning the @askbing account. The Usage is as follows:
@askbing [sourcetype [options]] question_or_search_terms
If you omit the sourcetype it will default to “web”. The following sourcetypes and options are currently available:
- @askbing image iPod
- @askbing instantanswer feet in a mile
- @askbing news FFIV
- @askbing mobileweb games
- @askbing phonebook “F5 Networks”
- @askbing relatedsearch “Xbox”
- @askbing spell Is this missspelled?"
- @askbing web Apple
- @askbing translation en:es Hi, how are you?
- @askbing video The Pick of Destiny
The only source type that includes a separate option is “translation” By default it will translate from English to Spanish. If you want to override these languages, you can use the “from:to” option to override these defaults. The values for the from and to languages
- Ar = Arabic
- zh-CHS = Simplified Chinese
- zh-CHT = Traditional Chinese
- Nl = Dutch
- En = English
- Fr = French
- De = German
- It = Italian
- Ja = Japanese
- Ko = Korean
- Pl = Polish
- Pt = Portuguese
- Ru = Russian
- Es = Spanish
After you post an @reply to @askbing, you should expect a @reply to your account within a minute or so.
Since I’ve only spent an hour or so on this, there are bound to be some issues so please let me know if you find any. Here' are a few known issues:
- It queries it’s @replies every 60 seconds and only queries 100 entries so if this ever gets more popular that that, I’ll need to enhance the request logic.
- It only returns the first entry returned from the bing services. I might change this to a random entry later on.
- It has little error handling so if you get a garbled response, then that’s likely the reason.
- It uses tinyurl for Url shortening which is sometimes fairly flaky.
- Probably more…
So, when you’ve got some time, Send a @reply to @askbing and see how it works for you. I’d love to hear any and all feedback.
Read the original blog entry...
Published June 9, 2009 Reads 14,995
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Joe Pruitt
Joe Pruitt is a Sr. Strategic Architect at F5 Networks working with Network and Software Architects to allow them to build network intelligence into their applications.
- Cloud People: A Who's Who of Cloud Computing
- Cloud Expo New York Speaker Profile: Dave Linthicum – Cloud Technology Partners
- Windows Azure IaaS Reaches General Availability
- Enterasys Spotlights SDN's Impact on Traditional Networking in Upcoming Webinar
- New Relic Q1 2013 Blazes Past Growth Targets and Reaches 40,000 Active Customer Accounts
- NASA's Twitter Account Wins Back-To-Back Shorty Awards
- Big Data Isn’t About the Database, It’s About the Application
- BEA Updates WebLogic SOA Portal for Web 2.0 Era
- Cloud Expo New York | Danger Ahead: Why File Sync Is NOT Endpoint Backup
- Symphony EYC Appoints New Account Manager to Drive Global Opportunities
- AWS Going into a New Line of Work
- UNIT4 Business Software: Three Retail Accounting Tips to Help Retailers Leverage the Cloud and Back Office Systems
- Cloud People: A Who's Who of Cloud Computing
- Cloud Expo New York Speaker Profile: Dave Linthicum – Cloud Technology Partners
- Cloud Expo New York Speaker Profile: Jill T. Singer – NRO
- Cloud Expo New York: How to Use Google Apps Script
- Windows Azure IaaS Reaches General Availability
- Upcoming Domino's Pizza Investor Events
- Enterasys Spotlights SDN's Impact on Traditional Networking in Upcoming Webinar
- New Relic Q1 2013 Blazes Past Growth Targets and Reaches 40,000 Active Customer Accounts
- Rackspace Hosting Named “Platinum Plus Sponsor” of Cloud Expo New York
- Scripps Networks Interactive’s Popular Lifestyle Shows from HGTV, DIY Network, Food Network, Cooking Channel and Travel Channel Coming to Prime Instant Video and Amazon Instant Video
- NASA's Twitter Account Wins Back-To-Back Shorty Awards
- Small Cancers, Big Data, and a Life Examined
- The Top 150 Players in Cloud Computing
- Who Are The All-Time Heroes of i-Technology?
- Where Are RIA Technologies Headed in 2008?
- Success, Arrogance, Rise and Fall
- AJAX World RIA Conference & Expo Kicks Off in New York City
- Personal Branding Checklist
- The Top 250 Players in the Cloud Computing Ecosystem
- i-Technology Viewpoint: Attack of the Blogs
- Exclusive Q&A with Jeff Haynie, Co-Founder & CEO, Appcelerator
- Web 2.0 News and Wrapping Up "Real-World AJAX" Seminar
- Passing Parameters to Flex That Works
- i-Technology Viewpoint: It's Time to Take the Quotation Marks Off "Web 2.0"

























