api

How to deal with authentication for a Ruby API wrapper?

I'm working on an API wrapper for Viddler, which will eventually be made public, and I'm trying to figure out the best way to deal with authentication/API keys, specifically with usage within Rails applications in mind. The easiest way to write the wrapper would be to just have the code create a new client each time, and the developer c...

Microsoft Win32 to Microsoft .NET Framework API Map

all of we know the .net api is wrapper for win32 api now how can i find which .net function map in which win32 function i seen this list http://msdn.microsoft.com/en-us/library/aa302340.aspx but i need to know other function if i need any tool? ...

PDF Parser API in Java

Hi.. I want to convert the pdf data into our own file specifications. So pls help me out to choose the correct API for PDF parsing using java or .net. The parsing should extract each and every component(element) from the PDF pages. ...

Converting address from database to lat/lng json

I have a database with addresses in which need to be converted to geocode to work with Google Maps API, i was thinking of bringing in the entries via JSON. Is there an easy way to get the addresses from the database convert them to geocode and create and JSON feed? There are about 4000-5000 entires. I know Google offer the Geocoding AP...

disable character escaping in to_json / Hash.from_xml

I try to implement an api for a projekt and found this article http://www.coffeepowered.net/2009/02/16/powerful-easy-dry-multi-format-rest-apis-part-2/ So i get a xml.builder template to build my response and render it to json. It works great, but I have some utf-8 encoded Data I want to respond. First I specify the xml encoding. Next...

get a link from the database into the google maps info window

Hi, i've started very enthousiastic with google maps and managed to get the info from my mysql dbase to the map on my site. The problem i'm facing now is that i want to be able to click through from the info window to a page on my site (the link also comes out of the dbase). Here is the standard google api code I'm using now ('mijnlin...

Java Generics Question

Alright, I thought I understood generics pretty well, but for some reason I can't get my head wrapped around why this doesn't work. I have two classes, or I should say that Google has two classes (I'm trying to implement their Contacts API). They have a ContactEntry class (abbreviated below): package com.google.gdata.data.contacts; pub...

View what methods/functions return a specific object in Visual Studio

I'm making a C# application in Visual Studio and am wondering if there is any way to view every method that returns a specific type? For example, I want to know which methods return an "AsymmetricAlgorithm" object. ...

Stock purchases and stock quote data

I apologize for being rather vague here, but I'm working on a project involving stock data and stock purchases. I'm sure I'm going to end up having to get a broker involved, but I was wondering if anyone knows of any documentation on the underlying technology involved with existing trading sites, as well as the channels through which sys...

Programatically searching GMail?

Is there any way to programatically search GMail, preferably using C#? For example, I'd like to get all email messages matching the search label:MyLabel from:[email protected], so that I can parse the email bodies as required. The only thing remotely feasible I've found is the GMail API by Johnvey Hwang, though it doesn't look like it s...

custom google map marker - javascript & php

Hi Everyone, here is my code - I've tried using the google maps api and other tutorials, but I can't seem to get the code right. It either displays the default icon or no icon at all. Here is the unaltered code - <script type="text/javascript"> //<![CDATA[ <?php if ($er...

API to Get Current Average Gas Price in United States

Is there a web API available to get current average gas prices either nationally or locally given say a zipcode? Preferably something I can use with Javascript, that would maybe give me some XML or JSON or something. I am looking for United States info particularly. ...

DSpace and Physical Separation of Documents

I'm looking for a document repository that supports physical data separation. I was looking into Open Text's LiveLink, but that price range is out of my league. I just started looking into DSpace! Its free and open source and works with PostgreSQL. I'm really trying to figure out if DSpace supports physically separating the data. I gues...

How to check if user is logged in with new facebook php api

I am migrating my old FB app to the new graph API using the PHP API I have two pages: public ones (which require no user login) and private ones (which do) So the code of every single php page in my application works as follows: if (this_page_requires_user_login){ $facebook = new Facebook(...) ; $session = $facebook->getSe...

is there a faster way to get a YouTube clip's title than this?

Currently i'm using the following, which seems quite slow for multiple clips: static function get_yt_title($clip_id){ $feedURL = 'http://gdata.youtube.com/feeds/api/videos/' . $clip_id; $entry = @simplexml_load_file($feedURL); if($entry){ $video= new stdClass; $media = $entry->children('http://search.yaho...

using IFileOperation in delphi 7

I want to use IFileOperation CopyItem to copy a file from a directory to another directory is there a simple example in delphi 7? ...

Multiple infoWindows stacking over same location Google Maps API version 3

Hi, I'm loading a json file for a bunch of markers on my google map (verison 3 api) and then placing infoWindows for each marker. It all works swimmingly well except that the markers are ignoring the latlng information, and when markers are clicked the windows simply stack over the original marker. Everything works perfectly except for ...

google maps - showing default icon instead of custom icon

Can someone look below and tell me where I'm off? I can't get the custom icon to display - only the default. thanks - <script type="text/javascript"> //<![CDATA[ <?php if ($er_imglayout == 4 && $row->image2) { ?> function domap() ...

Live Football Stats API

Does anyone know of a service that you can poll for live stats? Do yahoo, cbs, fox etc ingest a service or do they key them in during the games? ...

Can I build a mobile website that has access to the iphone camera?

Does webkit have access to the camera API on the iphone? What about other phones? I want to build a mobile website that enables users to click on a button that opens the camera, ask if you want to take a new picture or user an existing one (assume the former), take a picture, confirm the picture is good, then be routed back to website ...