| By Joe Pruitt | Article Rating: |
|
| June 9, 2009 07:05 AM EDT | Reads: |
15,034 |
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 15,034
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
- Enterasys Spotlights SDN's Impact on Traditional Networking in Upcoming Webinar
- NASA's Twitter Account Wins Back-To-Back Shorty Awards
- Google Compute enters the IaaS market
- GoBank Announces Timing of General Availability and National Distribution Relationships at FinovateSpring
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Cloud Expo | Maximizing the Small Things: Efficiencies for Cloud Hardware
- Cloud Business Solutions, Social Media, and Platform Systems of Engagement Market Shares, Strategies, and Forecasts, Worldwide, 2013 to 2019
- Google Submits Concessions to EC; Gets Sued in the UK
- Global Mobile Security (mSecurity) Market 2013-2018
- RightScale Supports Windows Azure Infrastructure Services General Availability
- Cloud People: A Who's Who of Cloud Computing
- Enterasys Spotlights SDN's Impact on Traditional Networking in Upcoming Webinar
- RetailMeNot Shoppers Trend Report: While Over 8 in 10 U.S. Residents Cite Affordability as Their Top Vacation Priority, a Majority (58%) Could Waste Hundreds of Dollars by Booking Travel a la Carte
- NASA's Twitter Account Wins Back-To-Back Shorty Awards
- ChannelAdvisor Participates in Upcoming Retail Industry Conferences RBTE and Retail Week Live
- Basho Announces Open Source Riak CS and General Availability of Riak CS Enterprise v1.3
- Google Compute enters the IaaS market
- How to Protect Your Facebook Account Before Graph Search is Public
- Google Says Motorola’s Upcoming Phones Don’t ‘Wow’ Them
- Why Cloud Computing Skills Will Be Required for IT Workers
- GoBank Announces Timing of General Availability and National Distribution Relationships at FinovateSpring
- MicroStrategy Announces General Availability of MicroStrategy 9.3.1
- Where Are RIA Technologies Headed in 2008?
- Cloud People: A Who's Who of Cloud Computing
- Dolphin Announces Open API With Over 50 Add-ons Including Dropbox and Wikipedia
- ManageWP Powers Over 100,000 WordPress Sites Within Three Months of Launch
- SEO/SEM Tips & Tricks: How and When Should You Submit Your Website to Google?
- Google Version 2.0: Googzilla - The Calculating Predator
- Google's Competitive Advantage: It Leverages "The Power of Free"
- Cloud Expo 2011 East To Attract 10,000 Delegates and 200 Exhibitors
- Google Space Launches at Heathrow Airport
- AOL To Enhance Video Search Engine by Adding RSS Feeds
- Ulitzer’s Amazing First 30 Days in Public Beta
- The World's Youngest "Google Entrepreneur" Is One Month Old






















