api

Should we go open-source?

Recently, we've release first stable version of our API access for developers(main features of main product). Our API now has about 4 features with their own signatures, response types and so on. To increase its popularity we want to release Wrapper Class for this functions in the most popular programming languages. So now we have to ...

PHP API for access social networks

hello guys, am looking for a php api that can access social networks like facebook,myspace,orkut and so many more of them. I should be able to upload pictures and videos to my favourite social networking account and also post get updates from thems, change status, make comments and similar stuffs. Just wondering if there is anything lik...

How to handle errors for a facade method that performs many disparate background changes ?

Imagine I have a service that looks like this: public interface MyAccountService { boolean create( String user ); } The method create performs several changes, namely (for discussion sake): adds a message into a Queue adds a row into several tables creates a LDAP account etc... Currently I collapse all the error messages into ...

pastebin API

Does anyone know if pastebin has an (official or unofficial) API. I would like to automatically upload snippets. Yes, I know the admins would not like it but it is open source and I plan to do it in an installation of my own. ...

API vs. SDK

I am trying to explain to a non-developer the difference between an API an SDK. I need to explain why a commercial fingerprint software vendor will likely not provide an SDK although they may certainly have used one. But both device vendors and software vendors can and should expose a well-defined API. This API allows other software prog...

trigger php function request when google maps marker is moved

When a marker is placed, I want to call a php function (in another file) with the latitude and longitude as input and output the result in a div on the page. So whenever the marker is moved, it updates the div with the latest result of the function. I know I'd need javascript to do this but I'm not very familiar with it and any help wou...

How do I programatically take a screenshot of an application in Linux?

Hi, How do I programatically take a screenshot of an application in Linux? I'm using c++. Any idea? For windows there are a lot of resources but I can't find anything for linux Any help? Thanks ...

Web service for brand names (electronics, clothing, books, etc.)

Does anyone know of a web service that would allow me to search up brand names for a variety of items? Basically, I want a suggest-style dropdown to match brand names as I begin to type. I am writing a household inventory program and I don't want to deal with someone mistyping a brand name and I also don't want to be storing every sing...

Useful databases around web

As Tim Berners-Lee told at TED, there's lots of hidden data. What useful free databases or APIs you know around web? For example: European Union's VAT number validator Team Cymru's IP Address to ASN/country mapping PhishTank API against phishing Akismet against spam (free for personal use) IMDB database dumps Wikipedia database dumps U...

The right type for handles in C interfaces

I'm creating a C api that hides some functionality in a DLL file. Since everything is C++ on the inside most of the functions works against handles which maps directly to this pointers on the inside of the API. To get a some degree of type safety for those handles I define them like this: typedef struct MyType1* MyType1Handle; typedef...

Fleet tracking - Retrieving location data from cellphones, C# libraries

Hello - I need to retrieve latitude & longitude information from cellphones carried by delivery trucks. I've found a few examples of how this can be done here: http://msdn.microsoft.com/en-us/magazine/2009.01.wm6gps.aspx http://www.codeproject.com/KB/mobile/DeepCast.aspx Is it possible to retrieve cell phone location information from a...

Google News Search - Getting the Category

I am experimenting with the Google News API/Widgets. For example (http://code.google.com/apis/ajaxsearch/documentation/newsshow/wizard.html). This tool allows you to choose categories that pertain to the types of news you would like returned. If you run a search, through all categories, is it possible to see which categories a particu...

Yelp viewing distances

Trying to figure out how Yelp viewing distances works with the google API for when users extend their viewing radius. Questions are specified as to how they set up their databases to handle such dynamic and vast searches for each location. Trying to set up the same viewing options and any recommendations would be helpful. Thanks ...

Sort lexicographically?

I am working on integrating with the Photobucket API and I came across this in their api docs: "Sort the parameters by name lexographically [sic] (byte ordering, the standard sorting, not natural or case insensitive). If the parameters have the same name, then sort by the value." What does that mean? How do I sort something...

Facebook: Can I Programmatically Add a Friend?

Is there a Facebook API to add a friend? I can't find one, but then I can't find it stated anywhere that there isn't one, and this seems like something a lot of people would be asking about. (Note: I'm not talking about a Facebook application, but rather an HTTP-based API.) Clarification I should mention that I'm trying to do this W...

PHP Syntax error with Youtube API: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

I keep getting this error in line 54 and I don't know why. All that I'm trying to do is to process the first entry of the query result: extract it's URL so as to construct an embeddable video object. <?php function extractID($youtubeURL) { //split off the final bit of the URL beginning with ‘=’ $youtubeID = strc...

Pdflib Java api

Hello, Does somebody knows a high level Java API that wraps the pdflib (horrible) Java API that is actually easy to use. To clarify, I have to use pdflib (my company uses it), so I need a wrapping API, not other alternatives. Thanks Tal ...

REST - supporting multiple possible identifiers

For the site I am working on, we are in the process of improving our URLs for one type of resource - specifically, moving away from numerical IDs toward unique, descriptive strings. A similar example would be switching from identifying users by numerical database ID to identifying them by username (not our specific case, but analagous). ...

Anyone ever use any kind of online item sale API?

Basically I just want to write some kind of e-commerce website to get my mind around this new framework I want to gain some experience in but I don't own a store or anything like that. I've used travel APIs in the past that basically let you use their inventory and then just split up the mark up with you since you're the one who brings ...

Is there any Java API available to compare two microsoft word documents?

I am looking for a Java API which can compare two microsoft word documents. We are using Linux server so we can't install Microsoft Word in it. EDIT :- We want to compare two document and what ever things are not common that we have to highlight with some color or any other way ... So I thing we have to merge both document and highligh...