api

API for proxyfying specific application

I need to write an application that will proxify some other application (redirect all network traffic to other proxy server). Just like FreeCap, ProxyCap, etc. Can anyone here points me to API I should be using? Preferably the API that will work under 2k, XP, Vista and W7. ...

Flickr api vs. Picasa api

I'm building an application where users can upload pictures. All I require is for the user to upload the initial photo, and manage the title, description, tags and spatial data for kml. The ability to upload videos would be nice. These pictures will be used as part of a custom google map application. I'm more interested in the effectiv...

Web services API design: XML elements vs. attributes

I'm designing an API for a web service and I can't decide between using XML attributes, elements or a mixed architecture. Let me show you an example. Let's assume I have an object called Domain. This model has 3 properties (tld, sld, trd and the name itself) and a method valid? that returns true if the domain is valid. # I'm using ruby...

Yahoo Weather API WOEID retrieval.

I'm creating an app (PHP) that takes yahoo weather data from the free RSS feed and correlates it with a colour hex based on data retrieved from the RSS feed. The issue I'm having is finding a way to grab the location code or WOEID without doing it manually. Yahoos API sends back an RSS feed as long as you provide a WOEID -> http://weath...

Uncompressed google search API

I made some searches in google and only uncompressed things i fond are ajax apis (jquery, mootools and etc). So probably there isn't uncompressed version of the search API, but if I'm wrong please tell me :). ...

To hook into Git, would Ruby have an advantage over c#?

If I wanted to be able to do all things GIT via C# i.e. creating a c# wrapper so I can do things over the web (view repositories, files, diff of files etc). Would Ruby have any advantages over c# (and .net)? ...

CruiseControl.Net API through C#

I'm currently trying to create a tool that uses the cruise control api for builds. I've managed to create a real time log of builds, however i'm struggling with adding a new project to the server through the use of the api. I'm trying to use something along these lines: RemoteCruiseManagerFactory factory = new RemoteCruiseManagerFacto...

Is there an API to GlassFish Admin Console?

Hi, we just inherited the development of a web application that uses GlassFish. The setup instructions we got have all these manual steps to setup connection pool, JDBC resource and JMS. I'm wondering if there is an API that could allow us to do all this work automatically (e.g. with a script)? Thanks! ...

Are there any .NET/ JAVA free or opensource SPAM detectors that yield good results?

I am looking for a .NET/ JAVA free or opensource SPAM detectors accesible via an API that yield good results. I would consider paying for a good service that accomplishes this as well, but ideally, I would like to go open source. Does any one have any good experiences with any or recommendations? Ideally, I would get the text/markup to ...

How to use OpenID in RESTful API?

I'm building Pylons-based web application with RESTful API, which currently lacks any authentication. So I'm going to implement that and in order to avoid all the trouble and caution with storing user passwords, I'd like to use OpenID for authentication. What would be the best way to do this? Are these two things compatible? Are there ex...

Is having a function call block a bad design process?

I'm writing an API which is used to receive some data from another application. Currently the function is designed to block until data is received. In my mind this limits developers using the API to use multithreading or some sort of multi-process design. So is it better for a function to block or to return a null and then sleep for a fe...

Is basic auth with SSL secure enough?

I am developing an application which need to handle a massive amount of REST requests. Using basic auth will save a lot of computing resources since I don't have to compute the signatures. Also, the documentation will be a lot simpler. What are your thoughts? ...

Types in a public c++ API

I'm writing a library and wonder what's the best practise for datatypes used in a public API. Given the funtion void foo (int bar) which expects an index to some internal array/container. What type should that be? Because an index can never be negative I could use unsigned int or size_t. Or should I stick with a plain int and assert ...

How to get post codes with given postcode and distance in miles or km?

Hi, My site needs postcodes display with given post code and distance (miles or km). I have to implement it using google api. Is it possible to do so? The country for which i need to use this is Australia. I am trying to find out the solution for two days. Can anyone help me out. Thanks in advance ...

Audio Device, change Speaker setup

Hi Guys, I want to change from my program the speaker setup, which is under speaker settings / advanced... section. I tried to find maybe there is some sort of registry entry but no luck till now :| Any Ideas ? Thanks a lot ! ...

connect Iphone with Facebook API

Hi I want to connect facebook API's with my IPhone. For this I have downloaded the FBConnect sdk and included the FBConnect group of FBConnect.xcodeproj in my application and then I have written the following code in FacebookAPPViewController.m - (void)viewDidLoad{ [super viewDidLoad]; session = [FBSession sessionForApplication:@"a31...

Delete (MediaWiki) Page with C# (HTTP POST)

Hello. I try to delete a page like this: WebClient wClient = new WebClient(); wClient.UploadStringCompleted += new UploadStringCompletedEventHandler(client_UploadStringCompleted); string str_post = "action=delete" + "&title=Vorlage:" + str_zuloeschendeVorlage + "&token=" + str_token + "%2B%5C"; wClient.UploadStringAsync(new Uri(@"http:...

How to (or Can I) use Google Maps in a Desktop application

Hi. I researched this, read the TOS and only got more confused. I want to develop a desktop application (Java or Objective-C) using maps. What I'll actually need from the maps is to visually set a starting point, and an end point and get the distance in km. How can I do this (API or interface), and am I allowed to use Google Maps API in ...

Errors while using the Google Maps Flash API

Hi stackers, my question today is dealing with the Google Maps Flash API. I successfully created a basic map using Flash CS4 with the API here: http://gaban.com/googlemaps/ Now my problem is with the next basic tutorial dealing with a simple Info Window message. The Google DOCS example(FLEX) is here: "Hello World" Documentation here: ...

Consume RESt API from .NET

Hi All, I am trying to consume REST API from my .NET Application. This API's are all written in JAVA. I am asked to pass the authentication credentials vis HTTP headers. How can I pass these authentication credentials like 'DATE', 'AUTHORIZATION' and 'Accept' via HTTP headers. Which class in .NET can I use to accomplish this task. Can...