api

Implementing comparison using a generic interface in C++

Let's say I'm working on a library that works on items of type Item. The main entry point is a class like: class Worker { private: SomeContainer _c; public: void add( const Item &i ); void doSomething(); }; The doSomething() method looks at the added items, compares them, etc. and does something with them. So the Item class ...

when/where we need an API feature on our website?

When and where we use an API feature in our website? what are the advantages of APIs? How to write API's programs? Is there any reference for how to create API's? Or structure of API Applications? These are the general questions, please do let me know your thoughts about APIs. I think my question is clear for all :) thanks in adv...

how to sign in to google apps and my own site without provisioning api

Is there a way to make a one sign in site which will both sign to google apps and my site? I haven't got acces to provisioning api. The only idea how to do it that comes to my head is to somehow bypass it with curl. I'd love to know if there is any other solution, server side or client side. Please, help! I'm using django if that does ch...

Travel/Hotel API's?!

Does anyone know of a good API to pull a list of hotels (preferably with address info/images) in a city? ...

Flickr API Java/Clojure

I am trying to get a list of all the photo sets in my account. I gave my application write access i can verify this has write access by creating an photo set but when ever i try to read the list i only get my public lists not my privates. (def flickr (new Flickr api-key shared-sercret (new REST))) (defn get-photo-sets [ ] (let [;p...

Does YouTube's API allow uploading and setting of thumbnails?

I haven't found anything in their documentation or on the web that says yes or no. Using the Python library. ...

How to use dates on x axis with google chart api

This question has already been addressed but I would like to see some PHP code on actually doing this and also because I did not have the ability to comment so I was asked to 'restart' the thread. I am trying to plot dates on the x-axis but my dates do not have the same frequency. Here are some sample data points to have as an example:...

Access to a Drupal site via an HTTP API

I need to be able to edit nodes from a client outside of Drupal (this cant be implemented as a Drupal module). I'd like to find a module that exposes basic Drupal functionalities as an HTTP API (REST, SOAP, JSON, ...). I found the webservices module, but I cant find any documentation for it. Do you know where I can find documentation fo...

Can I access iPod library using hidden API's which Apple doesn't allow the use of?

hi, i have searched alot , about how to access video files stored in ipod library using iphone sdkl, i found an article saying that apple does'nt allow you to access ipod or other application but there is some hidden api's which allow you to use any application with yours. my question is that if anyone have any idea of how to use them ...

Fetching rows in a MySQL database table using MySQL C API and C++

Hello there, I'm confused when trying to fetch table rows in mysql using C++ with MySQL C API. I can do it easily in PHP, just because C++ is a strongly-typed language so that we also need to take care of the dirty process.. This is how I done it in PHP $data = array(); $i = 0; $query = mysql_query("SELECT * FROM `my_table`"); while(...

Write to Pastie or Pastebin?

I have an application I'm writing, in Objective-C(iPhone), and I want to be able to write a string of text to Pastie or Pastebin, and be able to have the link to that page. I have not been able to find any API for either of these, is this possible? How? Thanks! ...

cognos API and examples

Can anyone point me to a cognos API document and some example code? The best for me is that the API can be access thru python. But examples in other languages are good also. ...

How to get a google map to use 100% of its parent container?

I have tried to do this in many different ways but the most obvious was this: var map2 = new GMap2(document.getElementById("map2"), {size:"100%"}); That does not work. ...

Best 3D Java Engine

Looking for an easy to use 3D Java Engine API (i.e. not wrapper) that has a good community and good development. Extra features (i.e. audio, input, etc.) are not necessary but nice. List of the most popular Java 3D graphics APIs I found: Wrappers / Low Level Jogl - Strong community / Good support / Active Java3D - Abandoned (or slowl...

Public Hotel API

I need to programatically pull a list of Hotel names and addresses based on a city and state or zip code. I am looking for a public API that can accommodate real-time searching. I have evaluated Yahoo Local Search, Google Local and Kayak APIs but have found them unusable for the following reasons: Yahoo Local - Commercial use not allowe...

How can I retrieve a search snippets from google?

Hi, everyone! I'm working with a simple app, that allows user to enter some text, then delegates it to the google.com, searching for this text. Something like a Google search bar in Firefox. In Google toolbar, there is a feature: when you start typing the text, some snippets appear (sorted, as far as I understand, by the number of sear...

Hotmail Address Book Api

For my application, need to import hotmail address book.i m getting all the fields except field, when i m making a following request:- "https://livecontacts.services.live.com/users/@C@" ++ integer_to_list(LocationId64) ++ "/rest/livecontacts" please help me.. ...

How do I generate RDOC for (all of) Rails?

I can do sudo gem rdoc activerecord --no-ri and sudo gem rdoc actionpack --no-ri both of which give me good docs. But sudo gem rdoc rails --no-ri gives me pretty much nothing, as the Rails gem itself is really just a holder for the others. How can I generate the equivalent of http://api.rubyonrails.org/? ...

Reference for Net-SNMP API?

I'm currently developing a monitoring application for some in-house hardware using net-snmp. I have code that somewhat works, when calling snmp_pdu_free() my code segfaults. I am creating the pdu struct with snmp_create_pdu(). I would like an API reference to see if I am in fact writing my code correctly, but I haven't been able to find ...

Is there a rails plugin for uploading bulk items to eBay?

Hi, I made a rails app that generates HTML code for eBay product description. Currently my client copies the HTML code to the eBay site manually. I wonder if I can automate the process. Of course, I don't want to start from scratch. Is there any eBay API plugin for that? Thanks. Sam ...