api

How to read from env in Windows in c++

I want to get system folder in windows, by reading SystemRoot. How can I do it? many thanks! ...

Google Analytics JavaScript client library login method?

Hi, I'm wanting to use the Google Analytics API to display a simple table of "recent visitor" data in my password protected CMS. I would just like to use the supported JavaScript library (http://code.google.com/apis/analytics/docs/gdata/gdataLibraries.html) and looking at the following demo; http://ga-api-javascript-samples.googlecode....

Access Voice recognition javascript API in Android 2.2 (Froyo)

I wonder if the javascript API to access the voice recognition is accessible in Android 2.2 ? or if it is going to be for a future release ? ...

What is the most standards compliant way to send a fax from an application?

From what I understand fax over VoIP is very unreliable due to the real-time requirements of the fax protocol. Simply using VoIP to send fax message to POTS-connected fax machines is hence not possible. Besides from proprietary fax API:s (such as sending fax messages via a company specific SOAP API), what standards based protocols are t...

WCF wrap variable complex types for REST

Hey all, I'm implementing a lo-REST API and looking to return either XML or JSON. Building it in .NET WCF. I like the design of both Flickr and Last FM APIs which wrap their variable complex types in a simple response ala: <lfm status="ok"> <user> <name>RJ</name> <realname>Richard Jones </realname> <country>UK</countr...

curl - looking to test some Rest APIs - what is the syntax to Post xml to a rest api with basic authentication?

curl - looking to test some Rest APIs - what is the syntax to Post xml to a rest api with basic authentication? ...

How to access/edit sharepoint 2010 status feed (what's happening) from APIs

I'm having a tough time find the correct web service or client object model for accessing the status feed for a user. I need to access the latest update and have the ability to update it. Also, if editing the status, how will I determine if the current user is authorized to make that edit? Thanks for any info ...

How do I deal with certificates using cURL while trying to access an HTTPS url?

I am getting the following error using curl: curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none How do I set this certificate verify locations? Thanks. ...

OSX: Hook file read event

I have a particular file I want to monitor for file read attempts by all applications on OSX. I'd like to be able to interrupt the requests so I could decide which applications have permission to read the file and which don't (by querying the user, or checking a cache of user responses). Is this possible with the OSX API? If not, is i...

Facebook api needed for Video Upload from my site Using Php

Hai I Created fan page. I want users to upload videos to my fan page and to display it in my fan page. And i want to track all the user profile. Is there any API avaliable? Can any one give me the reference? ...

Best format to send error responses in simple API

I'm writing a simple url-based API that retrieves data and sends it back in one of a few formats (XML, JSON, CSV). I'm kind of on the fence about how to handle error responses. If the user supplies a format then I can just send the response in that format, but what about cases where the user requests an unsupported format? Is it prefera...

What design pattern to implement in order to use a REST API?

I'm starting a new project that will require use an external REST API that basically returns JSON and XML files. It's similar to the StackExchange API and I see every wrapper that has be done for that API has a different approach; for instance, stackoverflow-java-sdk uses the Adapter Pattern. So, in order to make sure every new API feat...

HTTP Get Request in JQuery to Last.fm

I'm trying to make an HTTP Get request using JQuery, but I get an empty string as a response, so I figure I'm doing something wrong. I used the documentation from http://api.jquery.com/jQuery.get/ as a guide. My code looks like this $.get("http://www.last.fm/api/auth/?api_key=xxxkeyxxx", function(data){ window.console.log(data); ...

I need resources for API security basics. Any suggestions? (This is my first serious programming job. Please help.)

I've done a little googling but have been a bit overwhelmed by the amount of information. Until now, I've been considering asking for a valid md5 hash for every API call but I realized that it wouldn't be a difficult task to hijack such a system. Would you guys be kind enough to provide me with a few links that might help me in my search...

Is it possible to post two links with the iPhone Facebook API in the iPhone's view (facebook app)

I am using the facebook iphone api and trying to use facebook.stream.publish to send a post from my app. I would like to put two urls/links in the post but can't figure out how. Aside from the href property that accompanies the header, I tried using additional properties to add an additional link. This works fine when viewed from a we...

how find program has device driver

how can i find whether a program has device driver or not (or know program run in ring0 or ring3) i need function(api) for this in c# or c/c++ like regmon it has device driver thank ...

Android -- Support 1.6+, and Support for Deprecated Code in 1.5?

Hello, I'm trying to build a app that uses the SmsMessage class but there are two versions depending on the API level of the device: android.telephony.gsm.SmsMessage (deprecated for 1.6 and above) android.telephony.SmsMessage (the new class for 1.6 and up) I want to target 1.5 and yet have the newer class (android.telephony.SmsMessag...

trouble parsing yahoo API json with jquery

I'm having trouble parsing the following link. I'd like to be able to extract a few of the object characteristics from each object in the array using $.getJSON(). Does anyone have a clue how I can do this? Thanks! http://search.yahooapis.com/NewsSearchService/V1/newsSearch?appid=YahooDemo&amp;query=market&amp;results=2&amp;language=en...

trouble parsing daylife json with jquery

Does anyone know how I would be able to access the "name", "url", "headline", "timestamp", and "excerpt" from the array "article" using the $.getJSON? http://freeapi.daylife.com/jsonrest/publicapi/4.8/topic_getRelatedArticles?topic_id=&amp;name=business&amp;start_time=2010-06-26&amp;end_time=2010-07-03&amp;sort=date&amp;offset=&amp;lim...

OpenOffice Writer Find Document Header height

Hello I am using OO Java API and would like to know if there is a way of finding the height of the header in a writer document. If the header height is set to automatic, then querying the height property of the header would return 0 even though there is content in the header. I also have the same problem in finding the row height of a...