api

What benefits does creating an API give to your service?

If I was a webservice, such as Twitter, how does creating an API for people to access my data help me? I can see that they are extending your service to areas that you might not have the resources to expand to (in a way extending your own service), but is it worth all of the bandwidth and infrastructure costs associated with giving acces...

How to programmatically bring a laptop into Sleep mode.

What API or tools can I use to query the capabilities of the system and choose the most appropriate on for putting the PC to Sleep, Hibernate or shutdown mode? Thanks for any pointers. ...

Which is your favorite Maps API and why?

I was looking at Google's, Yahoo's and Microsoft's mapping APIs. Are there major feature differences? Are there others I should be seriously looking at? ...

Is there a site to manage API keys?

I remember there was a third party site that did all the sign up, quotas and key generation for API keys. I can not remember the name, so wondering if anyone knows about it? ...

How do you manage api keys

I'm looking at building an API and was considering oauth for managing access to the api, but what I'm doing is more of a b2b system allowing businesses to access data to incorporate into their sites. I won't have any b2c at the beginning. So oauth doesn't seem like the right tool for me, I've been looking for sources regarding building...

What mime type if JSON is being returned by a REST API

My REST API returns JSON. I'm currently returning text/plain as the MIME type but it feels funny. Should I be returning application/x-javascript or some other types ? Second question is with regard to the HTTP status code for error conditions. If my REST API is returning an error state, I am returning as JSON { result: "fail", errorc...

Why does this code only work when I use a break point?

See code below, for some reason it only works when I put a breakpoint on line 2 (*) is there some delay? Is it starting the next line before it finishes the 2nd one? dp.SSLCertStoreType = nsoftware.IBizPayPal.DirectpaymentSSLCertStoreTypes.sstPEMKey *dp.SSLCertStore = My.Computer.FileSystem.ReadAllText(Server.MapPath("\cert_key_pem.txt...

Sending Keyboard Macro Commands to Game Windows

Hi, I wanna do a macro program for a game. But there is a problem with sending keys to only game application (game window). I am using keybd_event API for sending keys to game window. But I only want to send keys to the game window, not to explorer or any opened window while my macro program is running. When I changed windows its still ...

Finding a dealer area via google maps API

I have a national customer who are currently recruiting dealers by selling each dealer an area for a set fee. They want a 'find a dealer' feature on their website which should point customers to the dealer who has purchased the area the visitor enters. At first we were going to list major cities with the hope that the visitor would cli...

How to find inbound links to a given URL on the fly?

Technorarati's got their Cosmos api, which works fairly well but limits you to noncommercial use and no more than 500 queries a day. Yahoo's got a Site Explorer InLink Data API, but it defines the task very literally, returning links from sidebar widgets in blogs rather than just links from inside blog content. Is there any other alter...

Google Sketchup API - to a Windows App?

How can one interface with Google Sketchup, via the API, from a Windows App? I was looking at something written in C#/VB.NET but its seems like the only available Google Sketchup API is for Ruby. Any ideas on how to use that Ruby API from .NET? Is Ruby only serverside or can it be processed locally, offline? ...

Best way to determine if two path reference to same file in C#

In the upcoming Java7, there is a new API to check if two file object are same file reference. Are there similar API provided in the .NET framework? I've search it over MSDN but nothing enlighten me. I want it simple but I don't want to compare by filename which will cause problems with hard/symbolic links and different style of path....

Fun APIs to play with!

I'm learning LISP at the moment and I am about to get to the moment where i will be able to start doing what i wanted to do(web apps with lisp). Every time I use a new language of framework I try to do a very fun very crazy project using 2 or 3 APIs to make a mash-up. So i ask you guys if you have any weird, no so common, fun API to pla...

Rect::contains(Point) or Point::is_inside(Rect)

Should an API provide Rect::contains(Point) or Point::is_inside(Rect) or both? or Math::contains(Point, Rect) cause it's symmetric? The same Q goes for LineSegment::contains(Point), Rect::fully_contains(Circle) etc. ...

What are the best resources if you wanted to create an application with modularization?

In my analysis of the newer web platforms/applications, such as Drupal, Wordpress, and Salesforce, many of them create their software based on the concept of modularization: Where developers can create new extensions and applications without needing to change code in the "core" system maintained by the lead developers. In particular, I ...

Best/Most Comprehensive API for Stocks/Financial Data

What is the most recommended free/public API for accessing financial market stats and stock quotes (preferrably real-time quotes)? I'm not too picky about how it's exposed (SOAP, REST, some proprietary XML setup, etc.), as long as it's got some decent documentation. I'm planning to build a simple web dashboard in PHP with some basic dat...

Building a rudimentary accounting app

I'm building a simple accounting app to be used for personal finance. A user might keep track of purchases, upcoming bills, recurring deposits, etc. It will be verrrrry simple. Two questions: 1) Any advice I should keep in mind? Obviously, I'll use transactions where appropriate, but proper datatypes and other considerations would be ...

Haskell REST/GDATA API library

Is there available REST api library for haskell? I need it primary for google gdata client, but will probably use it for other purposes too. I know there is HTTP library, but I need something more high level, which supports things like json encoding/decoding, etc... ...

Identify 'Current' open workspace through TFS API?

Is there a way to programatically determine the current workspace of the open sln/proj in visual studio using the TFS API? I've seen how the VersionControlServer can retreive all of the known workspaces, but is there anything I can use to tie that to what the user currently has (or doesn't have) open? ...

Where can I find unit tests for Sun classes?

I'm writing an implementation of an interface provided by Sun and I'm wondering if anyone knows of the availability of unit tests for Sun's APIs. It would seem that such of thing would be available, but I'm having a hard time finding them. Specifically, I'm looking for BlockingQueue tests (ie: a test for LinkedBlockingQueue that I coul...