api

Twitter API - retweet text modification

Does anyone know whether it is possible to append additional text onto a retweet using the Twitter API? What I want to achieve is to be able to take @bob Hello Sally! and retweet it as @mike RT @bob Hello Sally! Yo Bob, why the desperation? The API doc seems to indicate that it is not possible, but that seems incredibly short sighte...

Recommended APIs for checking domain availability?

Does anyone have experience with the APIs of registrars like GoDaddy? The goal is to use Javascript to check the availability of domain names. Someone asked a related question on StackOverflow, but the answers focused on WHOIS. I'm hoping someone provides a more robust, JSON-based API for checking domain availability. It seems natura...

How to set background color of window after I have registered it?

I am not using a dialog, im using my own custom class which i have registered and then used the CreateWindow call to create it, i have preset the background color to red when registering: WNDCLASSEX wc; wc.hbrBackground = CreateSolidBrush(RGB(255, 0, 0)); but now i want to change the background color at runtime, by e.g. clicking a...

C++/Win32 API - SetFocus to button does not work

HWND button = CreateWindowEx(0, "BUTTON", ...); SetFocus(button); // Button no get focus! :( Also, I have other controls on my form that I am able to SetFocus() to. Thanks, Martin ...

RabbitMQ Message Consumption ID based (c# API)

i would like to publish/produce a message with some message id, like each message has a particular id.. And at the consumer end i would like to retrieve the messages by prividing the ID. suppose we have multiple consumers than each one should get only those messages which they requested through the message ids. (i hope i am clear enough...

Publish limit on Facebook's Graph API

Hey guys, I've been using the Graph API for a while. One feature of my application is that it allows a user to post a message on their friends walls (dont worry it is not spam). Anyway...there is a limit on the API and it will only allow a certain number of posts before failing. I've read on the facebook bucket allocation limits but ...

Indian Railway Train Search API

Is there any API provided by Indian Railways to search its train network, time-tables etc. There are many sites out there which show time-table etc. I searched Google but couldn't find any info on Web services or APIs provided by Railways. Is data scraping the only way? ...

Integration testing Rails API with basic authentication

I'm trying to get a test signing in using basic authentication. I've tried a few approaches. See code below for a list of failed attempts and code. Is there anything obvious I'm doing wrong. Thanks class ClientApiTest < ActionController::IntegrationTest fixtures :all test "adding an entry" do # No access to @request #@requ...

How to have contract for your parameter object?

Say you have type(interface/class) A and A has A.setX(String x) (and all gets) A.setY(String y) . . And you have this API: save(A a); save method requires A to have X, Y and 10 other values set, but a few other properties are optional. So how can save method tell this kind of requirement to rest of the world? You can assume that ...

In the SharpSVN API, what does the SvnSslServerTrustEventArgs Save Member exactly do?

I saw that this was used in sample code to accept all the warnings (like certificate warnings) when trying to connect to a repository but I wasn't sure exactly what the Save=true; was specifically doing whether it was saving the fact that these certificates were accepted ect. Any insight would be appreciated. Thanks. ...

[google visualization API] geomap and "country names"

Hi all, I would like to use a map API that allows me manipulating countries subregions like England and Scotland for instance (that are "provinces" of the United Kingdom, ISO-3166-1 code: GB). All the APIs I've found so far only allow you to work on a ISO country basis (in which England and Scotland aren't accessible). The Google geom...

Banking API/protocol

Do any banks offer data feeds of personal accounts via any form of API? I'm essentially looking to check balances on accounts without logging into their website. I remember reading about a universal banking protocol at some point... and maybe mint.com uses it to access accounts? Does mint.com have a special relationship with each bank...

Is there any documentation on the Pinnacle PCTV API?

I need to develop is an application that shows the TV signal along with information on the channel being displayed. My only need is to communicate the app with the card to change channels and get the video. So, I need to operate a Pinnacle PCTV (-like) card from Actionscript OR C#. Actionscript is preferred, but C# is being conside...

how can I confirm personal information by using VISA Card?

I'd like to make VISA confirmation on my site (ASP.NET). I believe there is an API, which could confirm entered personal information. Is it possible? ...

Need Tutorials for Writing a Login API

Hey, I'm pretty new to PHP, but I've got a site up and running with a full login/registration script, etc... I have found ample tutorials on sending data via HttpRequest and getting XML or JSON data back--so I'm pretty comfortable with that. I can't seem to find any information or tutorials on how to write the script that handles tho...

How can i attach userdata to each item in a listview? C++ Win32

I was thinking i could use the LVITEM structures LPARAM to attach a pointer to my class, but i can't seem to get it to work! Heres the main parts of my code: Creating the listview: hlvQuiz = CreateChild(WC_LISTVIEW, "", WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | LVS_ICON | LVS_AUTOARRANGE, 0, 0, 320, 240, m_hwnd, FontN...

Flickr API Error, Json callback

Hi Guys , why I have this kind of error in my code : "Error: jsonFlickrApi is not defined" $.getJSON('http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&amp;api_key=669158895706254986e97354a3c7e9a9&amp;photoset_id=72157623477817483&amp;extras=original_format&amp;format=json&amp;jsoncallback;=?', function(da...

Crossplatform alternative to Winsock?

I basically am looking for a cross platform way to do basic things such as accept connections and send and receive data. What library would work in Linux, Windows and Mac? Thanks ...

API's on website

I have never used an API as part of a website, I have always coded things myself, but I am now thinking about maybe looking at starting to use some, I mean why re-invent the wheel!? So, my question is, where do you start, how do you integrate, how do they work, what do I do, will they fit seamlessly into my site/design? Any pointers, a...

Can I use session-based authentication for my web API?

I am implementing a web server API for my application, and I got stuck in the process of figuring out what authentication method I should use to authenticate requests by the users (and also by other client applications). I think that I did not really understand what OAuth and other authentication protocols are made for. I want the authe...