api

How to setup a simple site search for a simple website?

I'm maintaining an existing website that wants a site search. I implemented the search using the YAHOO API. The problem is that the API is returning irrelevant results. For example, there is a sidebar with a list of places and if a user searches for "New York" the top results will be for pages that do not have "New York" in the main c...

When I hardcode an ASP.NET HTTP-StatusCode to 401, I keep getting bounced to the login page?

Hi folks, I've got an API setup. When the user provides an invalid/missing API key, I'm trying to set the Response.StatusCode to 401, something keeps bouncing me to my login page. It's an API ... so I don't want that. I wish to send them the json error message with the code being 401. url for this sample api is : /api/search/foo?apike...

Can someone suggest a well-designed Python wrapper of a REST API?

I'm writing a new one (for Netflix), and am simply wondering if there are any great reference libraries for me to study. In particular I'm looking for clever ways to express a single REST endpoint in code, which needs a least a URL, method, and params, and in the case of Netflix, information about the authentication level required. ...

BlackBerry API Compatibility Testing

Is there an easy way to find out the minimum BlackBerry API version required by an application? I know there are several ways, but I think there must be something really simple that is too obvious for me to think of. One way would be to download all device simulators provided by RIM and test the application on each of them. Another way c...

Different Resource Representations (REST API)

Hi, I'm developing a REST API and I have a question about resource representations. Suppose I got the "person" resource under the /app/person/{id} URI. I need an XML representation, that basically is all the object fields as XML nodes under the root. Now requirements indicate that we must also support another kind of XML representatio...

Template Monster API - ID Based Information (PHP)

Good Evening, I'm currently working with the Template Monster API and I've ran into a quick question. I've managed to get all of the categories to list their available templates and then assign the links to step1.php?templateid=11331. Once the user arrives on step1.php, I'm able to get the ID number from the URL and pass it to the Te...

How do you write good highly useful general purpose libraries?

I asked this question about Microsoft .NET Libraries and the complexity of its source code. From what I'm reading, writing general purpose libraries and writing applications can be two different things. When writing libraries, you have to think about the client who could literally be everyone (supposing I release the library for use in...

Java API in eclipse

Im new to eclipse , can anybody tell me how to use an JAVA API in eclipse. or share any sample Java API. Yes, how to use JavaDoc file in eclipse. ...

How to show the Windows File copying progress dialog throug PB?

I used the functions CopyFilea and ShFileOperation. CopyFileA it copied the file(large cumbersome data). but it didn't show the Copy Progress and Also tried in SHFileOperation api this shows the error. PB Version is 10.2.0 build 7516 Error Msg: Error Calling external function %s any body Please give me a solution? ...

What is the most suitable RIA programming language to construct a REST API?

We are currently designing a REST API that we want to publish in a few months. Since this is a brand new application we can choose any other programming language other than PHP. At this moment we are using the following link to have a base of best practices for APIs. What is the most suitable Rich Internet Application Programming Langu...

Rails ActiveResource

Hi There, We are in the process of building a REST compliant API. The backend is implemented in PHP and we want the interface to follow the convention over configuration motto. Many of the API consumers will be Rails developers, and following a TDD strategy to building out the API, we've considered using ActiveResource to implement a ...

What is the most complete (free) ISBN API?

I've been using the Open Library Books API, but it lacks many of the books I have. Which API has the best coverage (especially for non-English books)? Edit: I'm particularly interested in APIs that can be accessed from the server side and that provide metadata (author, title, publisher, year, etc). My coverage benchmark is this arbitra...

Invoking drupal

This is a follow up to: http://stackoverflow.com/questions/1296984/core-javascript-functions-to-make-error-warning-or-notice-messages-appear/1298286 Basically, the "drupal_set_message()" function stores error messages in session. I need a way to tell drupal VIA JAVSCRIPT to now display those messages. If the page was refreshed, these me...

Full site search?

I was hoping someone could give me some advice, I am hoping to implement a full site search on a website that I building with codeIgnitor, PHP and mySQL. I was hoping someone would be able to over me some advice on wheather there are any free API's that enable a full site search, or any tips on building my own, how would be the best way ...

svn api to access repo files from VBA

I'm new to VB and SVN and involved in writing automation scripts in VBA. I've got a requirement where we need to 'retrieve ,checkout ,add ' files to SVN remote repository from VB code in background as part of automation. Please can anyone guide me what needs to be done. Any libraries , projectsetup ,code ,links, info you can share to s...

How do you use RESTful APIs from PHP?

I've tried searching but I can't figure out how to access data via a RESTful interface. I'm looking for just example code that shows someone access some data from some imaginary web service using its API. A simple "how-it-works" explanation would be helpful too. ...

Wrapper libraries around J2ME apis

Are there any convinient wrapper libraries around somewhat inconvenient J2ME apis for working with PIM data? ...

VB6: Colour portions of points of a star

Hello I have found API functions to draw a star using VB6: what I need is to colour sections of each point of the star according to data-driven parameters: thus if the parameter passed is 1, I want to colour the part of the selected star point red up to 1/10th of its length measured from the circunference of the circle around which the ...

API design: Adding a new exception type - is it safe?

Hi All, I need to change an existing service API to throw an extra exception for a scenario. The exception will be a subtype of an already thrown exception. Is it okay to do this or will it be considered backwards incompatible? I have the interface in a separate jar, so if my service throws this new exception which is a child of the al...

J2ME location API (JSR 179) on non-GPS devices

The Java ME Location API says it supports: Mobile Network based positioning. GPS Short Range Beacons Quite a number of phones support this API (JSR179). However, some phones don't have an inbuilt GPS module, is it still possible to use this API to obtain the phone's current location? ...