api

How to posting to WordPress using C# ?

Hi, I want to write a program that can post data into WordPress using C# via POST method. I have no idea to do that. I hope someone help me some ideas. WordPress have any API support that ? Thanks ! ...

Is there some kind of Grooveshark API?

I would like to import my Last.fm library into Grooveshark programmatically, to make transitioning to it a bit easier. However, I haven't been able to find any kind of API which would make this possible. Has anyone heard of one? ...

Making a Text-To-Speech Wrapper in Android

I am attempting to create a wrapper class for Google Android's Text-To-Speech functionality. However, I'm having trouble finding a way to have the system pause until after the onInit function has finished. Attached at the bottom is something of a solution I created based on what I found here: http://stackoverflow.com/questions/1160876/...

How to log the raw SQL from Oracle occi C++ api?

One of our customers is complaining our application is not working. Their reasoning is that our sql function call to their Oracle database is not getting the "expected" result. Sometime, it should failed but our application get success from their database. It's really frustrating because it's their database and we cannot do any test on i...

Why is Google Charts not showing the right data for me? Are the axis messed up?

http://chart.apis.google.com/chart?cht=lc&chs=600x400&chd=t:171,811,629,507,460,390,434,379,329,312,368,329,329,329,352,330,299,323,340,325,329,1895,1047,736,617,684,620,515 If you go there on your browser, you'll notice that you see a graph. However, the axis are messed up! And it seems like I can't see the ups and downs of my...

Legality Of Re-Implementing An Existing API (e.g. GNU implementing the UNIX APIs)

I've often wondered about this. I'm not looking for legal advice, just casual opinions ;) If some company publishes an API on the web for their closed-source library, would it be legal for another party to release an open-source implementation of that API? Are function declarations considered source code? Take GNU implementing the UNIX...

Setting post tags in wordpress via XMLRPC API when submitting a post?

Hi, I am trying to use WordPress API via XMLRPC to submit new posts. But i can't set the post tags (nor the categories). echo "Adding $term to blog via XMLRPC ..."; $client = new IXR_Client("http://$blog.wordpress.com/xmlrpc.php"); $content = array('title'=>$term, 'description'=>"All abou...

Each request takes 25-30 sec for Google Analytics API?

I'm using GAPI library (in PHP) for querying Google Analytics API. I request 2 dimensions (pagePath, date), 2 metric (pageviews, visits), past 365 days time range, and 2 filters for pagePath. Average time to get data for one query is 25-30 sec. When I use only 1 metric (pageviews), average response time is 3 sec. Why would there be s...

Are Facebook Connect comments stored locally or in Facebook's DB?

If I integrate Facebook Connect on my website so Facebook users can comment on something, will the comments have to be stored in my database or will Facebook store them for me and I pull them back when I need? ...

Google Maps API - Get points along route between lat/long

I have a web site that I am trying to get completed and I need to have the user click points on a map and then work out the route on the roads between the two points. So the user clicks the first point on 1st street, and then clicks another point on 4th street, and the map will find the best way to get there and plot the route on the ma...

Using phpFlickr, how would one display the primary photo from each photoset?

Referring to this question: http://stackoverflow.com/questions/2561475/flickr-phpflickr-api how would you display a primary photo from a photoset rather than all photos and photosets? this is the code I have so far: <?php require_once("phpFlickr/phpFlickr.php"); $f = new phpFlickr("[APIKEY]"); $user = "xxxxxxxx@xxx"; $count = 1; $phot...

How to differentiate public methods and private methods during api testing?

Is it possible to test private methods of a web service, during api testing? If yes, how to differentiate public methods and private methods? I am using the object browser in VSTS to see the list of methods available. ...

WinVerifyTrust API problem

I'm using WinVerifyTrust API in windows XP and I don't want any kind of user interaction. But when I set the WTD_UI_NONE attribute, although it doesn't show any dialog boxes, but it waits for a long time on the files that in fact wanted user interaction (I mean files which without mentioning the NO UI it will ask the user for that file)....

How to update a Blogger HTML widget through API ??

hi, i am Nok from Mumbai. I want to add contents from RSS feed. Blogger has inbuilt 'Feed" widget which can extract the content from any feed. But this inbuilt 'Feed" widget doesn't solve my problem because the widget uses javascript. Some of my blog visitors have their Javascript disabled in their browser. So, i want a widget or code th...

How to upload image on elgg using rest url?

hi, I am trying to athenticate from the elgg local server. by refering http://www.danielansari.com/wordpress/2008/12/how-to-use-the-rest-api-in-elgg-11/ I am getting following error: Status: **** ERROR (-1) **** Message: Method call 'login' has not been implemented. Result: exception 'APIException' with message 'Method call 'login'...

ocupation and business type drop down lists

Hi, does anyone know of an API or where I could get hold of data/script to create a <select> drop down lists for occupation and job type? Regards, Phil ...

How can I create and use a web service in public but still restrict its use to only my app?

I'm creating a web service with create/update/delete calls. But for now I'd like to restrict use of it on my own web app and no other clients. How can I have clear text javascript code that makes these calls but still be confident the credentials won't be used elsewhere? My idea is to use server side generated nonces for each request. B...

REST API Best practice: How to accept as input a list of parameter values

Hi All, We are launching a new REST API and I wanted some community input on best practices around how we should have input parameters formatted: Right now, our API is very JSON-centric (only returns JSON). The debate of whether we want/need to return XML is a separate issue. As our API output is JSON centric, we have been going down...

Bloomberg APIv3 returning Slow Consumer Warnings!

I made a program in c# based on the example "SubscriptionWithEventHandlerExample" of API 3.2.9.0. After subscribing to about 500 securities for realtime data, I receive some ADMIN event warnings claiming SlowConsumerWarning and SlowConsumerWarningCleared. I read somewhere that it introduces some delay, until I process all events. The p...

How to implement Gmail OAuth API to send email (especially via SMTP)?

I'm developing a web application that will send emails on behalf of a logged-in user. I'm trying to use the new Gmail OAuth protocol announced described here to send these emails through the user's Gmail account (preferably using SMTP rather than IMAP, but I'm easy). However, the sample PHP code gives me a couple of problems. All o...