api

Is it possible to retrieve a list of all addresses within a certain region in Google Maps API?

Say I want to retrieve a list of all addresses of Rome. How do I achieve this programmatically in Google Maps API, or any other web service? I don't want the actual location of the addresses, just a list of the names of the addresses. ...

JQuery / Flickr API issue with get Photo set...

I have been trying to put together a photo albumn system that is managed via Flickr, I have been spending the past day or so playing around with the Flickr API and have the following code, but it just doesn't return the expected HTML. insetad I get an error in my browser for the line above ($('#images').html(theHtml);) <script type="t...

Youtube API: Batch searching

Does anyone know if batch searching is possible with youtube api? On the official page (http://code.google.com/apis/youtube/2.0/developers_guide_protocol_batch_processing.html) there is nothing mentioned about this issue. I would like to send some keywords and to get response back for all of them. ...

YouTube API with PHP white screen

Trying to make this code work... when I upload to my server hosted at www.globat.com--- I just get a white screen... no display. Help. What am I doing wrong? Listing videos in a category // read feed into SimpleXML object $sxml = simplexml_load_file($feedURL); // get summary counts from opensearch: namespace $cou...

Django, Borg pattern, API calls, caching results

Hi everyone! I'm using an API from a different site that returns a couple of 'pricepoint URL's that my users use to buy Virtual Goods. I'm supposed to cache those results for at least an hour, since they don't change the price points on their system much. (And we want to save both our's and their bandwidth.) After looking for singleto...

How do Rails and Jruby relate?

Background: I have a java library that is accessed by many developers - usually via java. However, a few devs hope to access this via a Ruby API. I am gravitating in the direction of Jruby in order to implement a Java-Ruby API. Questions: My main concern is that these developers will not be able to utilize the API in their current, R...

web services api: to wrap or not to wrap?

When providing a web services API (well, let's say SOAP), do you provide a library wrapper along with it to make it "easier" for people to use? Or do you just package up a WSDL and documentation for it and let people figure out what to do with it? What are people doing usually? I've seen a bunch of examples where the wrapper is provid...

How should I handle authentication in my REST API?

I am new to this but I will try my best to explain what I am trying to do. I have a catalog of products and various private information that my users want to be able to access via their website. For example: User-a has an e-commerce site and they want to sell my merchandise. They will be able to access a certain products details via...

How do I handle errors or bad requests in my Rails REST API?

I have a Rails app that includes a JSON API interface. When values are properly specified, the controller handles the happy path just fine and JSON is rendered as output. However, if there's a problem with the input, an exception is raised and some templates in rescues are rendered instead. I'd really just like to return a JSON error al...

Couldn't use Activation Context API from within Excel 2007 Add-in on Windows XP/2003?

I use VS2008 to develop a excel 2007 add-in, within add-in I want to use Activation Context API to instantiate a COM class. The werid thing is I can instantiate the COM class successfully on Window 7, buf fails on Windows XP/2003. Here's the code-snippet string codeBase = this.GetType().Assembly.CodeBase; string asmFullPath = new ...

C APIs for fetching Memory and File Handle count

Are there any C APIs for fetching free memory, swap memory consumption and to fetch file handle count similar to statvfs for file system information instead of directly parsing the /proc file system? ...

JQuery & Flickr API, not getting photoset details correctly

Hi, I amy trying to use the Flickr API to create a photo gallery on my website, I have the API & photoset, and am using the Flickr method 'getPhotos' which returns the photos from a given Set and I am calling this using jQuery. My javascript all seems to be working fine except whilst the details of the Flickr photoset are being return...

Guess a buffer size and recall an api function or call it everytime twotimes to get exact buffer size

I want to retrieve the version information of msi-package(s) What's the better way? First: Guessing a buffer that is large enough and recall if it doesn't fit (ERROR_MORE_DATA) 1 func call vs. 3 func calls and buffer can be bigger then needed Second: Call the api function to get the buffer size and then recall it to get the string w...

how to use ebay api for particular search results?

I have a php website in which i want to add ebay api such that when a user searches for any car or by text cars he can be able to see cars listed in ebay for sale. and user must not be able to search anything except cars and different brands of cars. Please Tell me how can i achieve this... Thanks in advance........ ...

beanstalkd c client library

We are going to implement a fairly complex new service in an asynchronous way, introducing asynchronous processing as well. For this, we have selected beanstalkd message queue service, as it fits best for our needs. The problem is that beanstalk seems to miss client API in C, at least I have failed to find it. I do not want to invent t...

Facebook Upload Video Sig

Hi I'm trying to upload a video to facebook via the video.upload call. I always have an invalid sig response from the server. I'm currently using a java Facebook to generate the signature via a static function: String sig = FacebookSignatureUtil.generateSignature(params, APPLICATION_SECRET); These are the params I pass: params....

Best Weather APIs free for commercial use?

What weather services have free APIs for commercial use? Out of the handful or so, which ones are easiest to tie into? Do they use "raw" HTTP requests or web services? Are there wrapper APIs for Java, .NET, Python, etc. Which have you had the best experience with? --update I would like something for South America ;) --Related http://...

images API / Error

I'm working on a project and I used the the Images Python API . For instance in the example given in http://code.google.com/appengine/docs/python/images/usingimages.html I get an error when ever I do not upload a photo, How can I modify the code so I don't get an error when I don't post anything. thanks ...

Restful APIs behind non-restful interfaces

Hi, I'm trying to find relevant best practices/specs/literature/etc. to the general problem of using a restful API (say, a standard Rails app) behind a non-restful facade, like a XMPP API or a websockets channel. For example, I've got a restful Rails app, and I want to expose a read-only asynchronous interface. It's pretty straightforw...

Facebook Graph How to get a concurrent session's public info?

Hi, I was wondering how to get either the uid or the public user info (name, pic) from a FB session that is not connected with my site. I'm noticing it in some of the social widgets and yelp is doing it too. Thanks, Steve ...