api

How can I use OAuth and PHP without using the oauth-php library?

I need to build a script that uses OAuth authentication to connect to Foursquare's API, but oauth-php library is too complicated. Any one page scripts that don't use MySQL? I would rather just use cookies. ...

"Search within distance" API for OpenStreetMap

Is there any API for OpenStreetMap which allows me to obtain a list of POIs within a certain distance (e.g. 10 miles) from a reference location? ...

How does ASP.NET MVC relate to WCF?

A Guide to Designing and Building RESTful Web Services with WCF 3.5, this article explains the foundations of REST and how it relates to WCF. MVC uses REST as the architectural model. I am guessing one can use the .NET MVC to create web applications that have both a front end and an API point, but I am not sure if the safe way of buildi...

Timeout Error with Hpricot in Rails Controller

Hey--I'm writing a basic Rails app that uses the digg API. I'm trying to parse the xml data that digg's api provides with hpricot, but when testing the page, the browser hangs until I eventually catch the Timeout::Error exception. Here's the code for the controller: require 'rubygems' require 'hpricot' require 'open-uri' appkey = 'htt...

Google Translate API - isReliable not returning anything

Has someone ever used isReliable with the Google Translate API? It always returns "undefined" value. google.language.translate('hello','','es',function(result){ alert(result.isReliable); // prints undefined alert(result.translation); // prints "hola" }); Resources: Google Translate API - Result objects ...

Is this considered as using private functions in iPhone dev, and thus illegal?

I'm trying to disable scrolling for a UIWebView and the only way i found is using this way: #import <objc/runtime.h> id scroller = [[Webview subviews] lastObject]; int count; Method *method = class_copyMethodList([scroller class], &count); int i; for (i=0; i<count; i++) { if (strcmp(method_getName(method[i]), "setScrollingEnabled:"...

API to add small text ads to sms's

I need a API for small text ads to include in a sms service I have developed. But I can not find any useful info by Google. I know a lot of free sms provider add a small ad to the sms they send out. Do there exist a service, where I can get the ads and include them, when I create the messages in C# greetings msdata ...

Encrypt OutputStream in Websphere

Hi, My application runs in Websphere 6.1 and it needs to encrypt OutputStream using security certificate. I guess that I have to use WAS keystore, so certificate will be configurable through admin console. I've searched Developerworks and WAS documentation and got stuck on amount of information, most of which leads to securing passwords...

Help with 2-part question on ASP.NET MVC and Custom Security Design

I'm using ASP.NET MVC and I am trying to separate a lot of my logic. Eventually, this application will be pretty big. It's basically a SaaS app that I need to allow for different kinds of clients to access. I have a two part question; the first deals with my general design and the second deals with how to utilize in ASP.NET MVC Primaril...

JPQL and SQL Criteria Api

JPA 1.0 specification is not defining the Criteria API which provides a programmatic approach for creating and modifying JPA Queries. Is there any API for building SQL and JPQL Queries like the way Hibernate Criteria Api is doing? ...

How does multitouch capability look to the API? (IPhone/OS X)

I don't have an IPhone and don't really want to pay $130 a month for a cell phone. (I leave mine in the car most of the time, sometimes the entire weekend.) But I covet the technology as a mobile computing platform. (Cruel Fate.) One of the things I like about it the most is the multitouch capability. How does it look from an API st...

How to add google api to .net c#

how can i add the google data API to the .net frame work. I saw the gdata documentation but was of no help. Should i use web reference? ...

Secure Communication Between iPhone and Server?

Hi All, I'm developing an app which connects to an XML based API. I have control over both the server and the app - is there any way I can make sure only my app can access the API? There is no user authentication. Thanks, David EDIT: The main concern is that bots steal data by scanning the XML. How about this: I request a sessi...

Reverse wikipedia geotagging lookup

Wikipedia is geotagging a lot of its articles. (Look in the top right corner of the page.) Is there any API for querying all geotagged pages within a specified radius of a geographical position? Update Okay, so based on lost-theory's answer I tried this (on dbpedia query explorer): PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos...

WPF: I don't understand class TextCompositionEventArgs

I don't understand the class TextCompositionEventArgs. There are members of type string named ControlText,SystemText,Text. Then there is a field TextConmposistion which itself contains the members ControlText, SystemText and Text again and additionally the fields SystemCompositionText and CompositionText. public class TextCompositionE...

API call or example code to display images in iphone bundle?

I'm trying to find some example code or maybe an api call to display 20 or so images in an iphone bundle and then let the user select one of those images. G-Man ...

How would I protect an API from abuse?

Hey everyone, I run an image hosting website and I'm designing an API for it. My concern is that I don't want anyone to be able to do something like: while(true) { Upload(); } and spam/DoS the site. My current solution is to limit all IP addresses to a certain amount of uploads per day/hour. I believe this will work fine for des...

Google Wave Context-Aware Spell Checker

Is it possible to use the Google Wave Context-Aware Spell Checker via web services? If yes, can anyone please be kind enough to post a simple example? ...

Output Parameters in Java

With a third party API I observed the following. Instead of using, public static string getString(){ return "Hello World"; } it uses something like public static void getString(String output){ } and I am getting the "output" string assigned. I am curious about the reason of implementing such functionality. What are the advant...

Facebook javascript users_getInfo getting email

Hi, How can I get the email address of a user from my app? Right now I have it as FB.Facebook.apiClient.users_getInfo(uid, 'last_name, first_name, email_hashes', userInfoCallback); The last_name and first_name does work, but email_hashes gives an empty Object. Am I missing anything? Thanks, Tee ...