api

Weather API with date parameter

Hi All, I am looking for a weather api that I can query by latlng and date. The date seems to be the hard part. All the APIs seem to only return the weather at he current day and/or week. I also need it to work worldwide and not just in the US. Can anybody suggest one? Ideally i'd like to use Google or Yahoo but i don't think they p...

How do i do gecoding and routing with OpenStreetMaps?

Because Google Maps API is not available in Israel (see here) I want to use OpenStreetMap. I'm confused by all the different ways to do geocoding, i.e. finding lat,long for an address. I'm also looking for the best way to do routing, i.e display a route between two locations, using OSM. I'm looking for JavaScript on the client and .Ne...

Hibernate search API with 2 tables

Hello I am trying to make a query with Hibernate criteria API. It looks simple but I can't get it to work. I have 2 tables. Person and Roles. Person has a set of roles. Role doesn't have any reference to Person. (i.e a guy A can be admin, user, another girl B can be only admin, etc...) I just want to to search for everyone who is doing ...

Adding twitter followers to my DB

i am using a php script to automate posts to twitter. the script to post is woking, but i want it to pull a list of users from my followers automatically. at the moment i am having to import CSV files into my mysql database. i know there is a way that i could pull followers and dump them into the DB directly using twitters API, but I ...

Web API Security

I'm asked to write a Web API for an application (pc executable, not web-app) that will allow sending emails. A user clicks something, the app communicates with the API which generates an email and sends it out. I have to make sure noone unauthorised will have access to the API, so I need to make some kind of authentication and I haven't...

Storing Developer API Key/Secret on the server

Amazon's API requires you to have a signature which is a combination of many elements one being the secret. The sever checks this signature by matching the API key passed in the parameters with a secret it has stored in the database. My question is, how does amazon match the api key and secret, wont doing a query every time overload th...

Checkout practices - PHP

Hello all, I am in the process of writing the final stages of a checkout module using the FirstData Global Gateway API for a client. All the form views for data entry have been created and the controllers are successfully communicating test data with the FirstData webservice. I am looking for thoughts on best practices on how to struc...

Designing a GPL library with weak dependencies on proprietary libs, best approaches?

Hello, I'm planning to write a C library which will act as an umbrella "wrapper" around several other libs. Some of the libraries will be GPL and some will be proprietary. Moreover, some of the libraries may not be available at compile time, so I plan to have autotools detect them during configure. I'm also wondering if I should buil...

WCF method sending POST instead of GET

I'm trying to create a WCF client that accesses a REST API. The API requires that a GET be used for a certain call, so I'm using the [WebGet] attribute for the method. However when I call the method, the actual call that is produced is a POST (viewed by using Fiddler). My contract is as below: [OperationContract] [WebGet(UriTemplate = "...

Im looking for documentation on Goolge Maps API ver 3 infowindow tabs

Im looking for documentation on Goolge Maps API ver 3 infowindow tabs See here for proof that they do exist: http://www.apple.com/za/buy/locator/map.html?tySearch=1&viaProduct=2&viaSpecial=-1&strCountry=ZAF&lat=-29.8570032&lng=31.0247936&gCountry=ZA ...but nothing in the google maps ver 3 api? ...

Designing a web service to be used by the iPhone and a web client

I'm designing a web service that serves up JSON through a REST API. This API is currently being used by an iPhone app to do CRUD operations. My question is, can I design a web client that uses this REST API using nothing more than ExtJS (or some other RIA framework) and HTML pages? In other words, can I create a static HTML page that us...

How to find out the wireless authentication mode?

I'm trying to get the authentication mode (WPA/WEP) on all the available AccessPoints via DBUS API(in Linux). NetworkManager API describes a property WPAFLAGS but I don't get anything out of it (I get Null Flag everytime). D-Feet DBUS debugger also doesn't show anything. Am I missing something, or is the API broken? ...

Import OPML subscriptions (file) to Google Reader manually

I have a huge (5,000+ feeds) OPML file which freezes and crashes my browser when I try uploading it to my Google Reader account using the following instructions: Login to Google Reader Click Your Subscription Click the More Actions dropdown Select Import Browse for your OPML file Click Open Click Upload You will see ...

Google API to find the search count

When I google for something, I get the count. Results 1 - 10 of about 800 Is there any API or something like that to capture the number "800"? I have a database of a few thousand words and I want the google count against it. ...

Best java api for facebook connect

What is a good Java api for Facebook connect implementation. something that is atleast moderately documented and is still active in terms of releases. Can I achieve everything with javascript API too? Thanks ...

Is there any API that provides weather information in XML?

I was wondering if there is an API that provides weather information in XML format, providing only City and Country. It's even better if it has a way to return results based on IP Address. ...

Is there any Video Gesture actionscript library/api

So I need an open-source Video Gesture actionscript library/api. So we have a web cam... we move a hand and it causes some events... So i need motion detection for navigation API/Lib Where to get it? BTW: i found one but its documentation is... poor - http://www.elctech.com/demos/using-haar-cascades-and-opencv-in-as3 ...

Open Source Video Gesture Recognition Library in C#

I need an open-source Video Gesture Recognition .NET Library/API (in C#). We have a web cam... we move a hand and it causes some events... So I need motion detection for navigation lib/api... Where can I find such a library? ...

UDP using socket API

My server use UDP. It sends 900bytes/1ms to my program automatically after being acquired. I'm using socket API in Windows (VB 6). I had made a test and I know that the message processing time (about 0.3ms) of my program is shorter than cycle time (1ms). So the cause should be socket internal buffer. I try calling setsockopt function to ...

YouTube Player API: How to get duration of a loaded/cued video without playing it?

Hi, I'm not able to get the correct video duration/length (in seconds) of a loaded/cued video via the getDuration() method of the YouTube Player API; the same method, however, returns a valid value once the video starts playing! Wondering how YouTube is able to show the valid duration of a loaded/cued video. When I load this HTML page ...