api

Is it good idea to build xml api based on for xml in SQL Server 2005?

One of my coworkers is going to build api directly from database. He wants to return xml for queries. Is really good idea? We have to build api for our partners and we are looking for good architectural approach. We have few milions of products, reviews and so on. Some partners will take 1000 products others would like to copy almost ...

Use java.awt.Desktop on client/server application for open browser on client

I'm trying to use the desktop class in client/server application. I want the default browser to open on the client side when the client clicks on a button. What happens is that the browser opens on the server. How can I fix it? Thanks ...

Python's c api and __add__ calls

I am writing a binding system that exposes classes and functions to python in a slightly unusual way. Normally one would create a python type and provide a list of functions that represent the methods of that type, and then allow python to use its generic tp_getattro function to select the right one. For reasons I wont go into here, I ca...

Google Analytics domain data without filtering

I run a web service with many sub-sites. Example URLs of sub sites: domain.com/sub/jim domain.com/sub/jon domain.com/sub/dave etc (around 3,000 currently and growing). We currently offer basic stats reporting (page views and unique pageviews) that we can get from Google analytics (we currently process a XML file of the /sub/ drilldo...

How do I override the RJS MIME Type in Rails 2.3?

I have an app running Rails 2.3.5 that has a JSON API for much of it. A contractor came in and did some work on the app and used RJS in a few places. Some of those controller actions that are using RJS for the main web site also need to be part of the API. The problem is that JSON API requests trigger the RJS responses, which is not w...

Need all the Restaurant names, addresses, etc which API will be the best to get it.

I am building a website that will allow you to find restaurants upto a certain distance from your house/or office. ineed to collect a database of all the restaurants. The criteria is based on the below details 1: Maximum distance you can walk/drive from a location 2: cusines of your choice. i need Restaurants Name, Phone number, addres...

How can I integrate Amazon search results into my app?

I was wondering how I can use the Amazon Search API in my iPhone app code. I've looked around and can't really find any good usage examples. My idea would be the lookup of a certain, specific Amazon product and the ability to let the user buy that item. Thanks. Any help would be great! Update: I didn't mean ordering. I just mean the ...

How can I allow affiliate links to items in my iPhone app?

I'm making an iPhone app that has information about different video games. How can I implement a shopping API that will allow me to redirect users who choose to buy a game? In other words, I'm looking for some kind of affiliate program API that works with the iPhone and lets me place item buy buttons that redirect the user to a product ...

RESTful API Suggestions

I'm about to create an API for a existing .NET application and want to go the RESTful service route. Our backend platform is .NET and MSSQL. I'm hoping for a good blend or scalability combined with clean architecture. Are there any strong opinions on the best way to implement a RESTful .NET API (WCF, standard ASP.NET, MVC or even HTTP ...

Creating a facebook application

Hi I created a desktop application. I was wondering what I should put for my Canvas Callback URL. I tried to define it as local (http://localhost:8084) but it doesnt accept it. I need it to get the session using http://www.facebook.com/login.php?api_key=YOUR_API_KEY&v=1.0 Thanks! ...

Twitter API and "OR" request

Is that me or you can't make a "OR" request to the twitter API? :( ...

How to override or remove a control in Google Map API

I was playing with Google maps for last two days and started understanding little bit about its functionality. I was using Large Map i.e. 700 X 300 resolution map size and i was trying to implement controls used in small maps. eg. var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(37.4419, -122.14...

Security in your own application

Hi, My app is running on domain example.com, but I fetch some data from domain api.example.com. Example: User want to add new article. example.com send request to api.example.com/add Question: I would like to know, which security should I use to verify user? oAuth? Or should I send user's password over POST? Thank you. ...

Who has great API documentation?

I'm looking for examples of companies who do great API documentation. Flickr's looks really nice. Any recommendations? What's apparent to me is that there are differing definitions of what "great API documentation" actually is. I'm looking for examples that combine nice design/usability with extensive and accurate documentation. So far...

Get personal credit report data via online api

I am adding the ability for users of my web app to get credit reports of people applying to them. I am looking for a service that charges per credit report request - ideally, not a monthly fee. What options exist that provide an online api for retrieving personal credit reports? ...

Can the Cisco VPN API be accessed from VBA?

There is an API for Cisco VPN (vpnapi.dll). Is it possible to use this API from VBA code? Thanks! ...

When/Where should i create the following class in my ASP.NET MVC project?

Hi folks, I have a simple class that contains some general information about the current web site :- public class WebSiteSettings { public EnvironmentType Environment { get; set } // Eg. Production public VersionType Version { get; set; } // Eg. Version2 public string ApiKey { get; set; } // Eg. ABCDE-1234 } Now, I wish t...

how to get feed of all new products from amazon

Amazon exposes RSS feeds for new products with a certain tag, such as http://www.amazon.com/rss/tag/blu-ray/new They also expose new popular products with http://www.amazon.com/gp/new-releases/books Is there a way to get a feed of all new products, regardless of tag and popularity? ...

Are there any weather *history* apis?

There are plenty of weather APIs that allow you to find forecasts, but I'm looking for weather history. Specifically, if I have a lat/lng and a timestamp, I'm looking to find the weather at that moment in that location in the past. I've looked through many different APIs including the National Weather Service and Weather Underground, bu...

how can i pull the recent public messages in twitter

HELLO, Though it seems like simple action, i am having trouble to find an example in any C# Twitter API avaliable today that pull all the public recent messages. I find how to do it with Java, but i really need to do it in C#. Does anybody have an example+API to use, for me. thanks ...