api

facebook api query string problem

Hi, I develop a facebook api with asp.net , I have to send query string but this querystring may include special characters like ( ı, ç ö, ş, ğ ). When I send query string with special characters, facebook returns me an error. the error is : The URL http://apps.facebook.com/sportsfanarena/Results.aspx?s=13&co=3&ci=Bal%c4%b1kes...

Wrapping C++ class API for C consumption

Hi there, I have a set of related C++ classes which must be wrapped and exported from a DLL in such a way that it can be easily consumed by C / FFI libraries. I'm looking for some "best practices" for doing this. For example, how to create and free objects, how to handle base classes, alternative solutions, etc... Some basic guidelines...

Guidance for writing a wrapper for a REST API

I've written a few very casual wrappers around REST and less structured web interfaces, but all just for fun, with very little attention to error detection and handling, timeouts, etc. Can somebody please give me some pointers, either on practices, or to resources, for developing a solid, professional .NET (or other platform) wrapper fo...

How Display data in asp.net Like www.visualthesaurus.com display Thesaurus

i want to visually display my data on asp.net website as www.visualthesaurus.com display for thesaurus. When the user click on the node then next child node displayed i want to know is this possible in asp.net.....Give me some idea or any api by which we can achieve this functionality in our website.....Some sourcecode also welcome..... ...

Does sending POST data to a server that doesn't accept post data recieve the data?

I am setting up a back end API in a script of mine that contacts one of my sites by sending XML to my web server in the form of POST data. This script will be used by many and I want to limit the bandwidth waste for people that accidentally turn the feature on without a proper access key. I will be denying requests that do not have the...

gathering user information from social networking sites

I am curious with the current api of some major social networking sites such as (facebook, twitter, myspace etc) and the willing of the user (for instance user allows a site to inspect his/her profile and giving enough privilages) would it be possible to do data inspection inorder to inspect user behaviours, patterns and thing they like...

Twitter API method (statuses/user_timeline) returning all user data against every tweet?

Is it just me or is it ridiculous that when retrieving users statuses, every single tweet also contains the full information about the user? So if I want to retrieve 200 tweets from a single user, I will get the user information (name, profile colours, description, etc.) duplicated 200 times! The user information per tweet is probably 15...

Property function style conventions being effected by void*.

I'm designing a public API in C++ and believe I'd like to retain C++ property-function style conventions that look like int& Value(), and const int& Value() const as opposed to get/set prefixes which return/assign by value because I feel the usage patterns are more concise and equally readable, while blending into existing C++ code very ...

organizing a list of pages in the wordpress sidebar using last.fm api

so i have my website, which i did in wordpress - http://chrisgruggen.com/class/mpm35/interactive-self-portrait/ my goal is to make the left sidebar have a list of my top bands (19 or 20 will do). i want them to be organized in order of how many play counts they have (using last.fm api) with the highest being at the top. i also want each...

Does google have a basic search API?

I assume they do, but looking for it is confusing due to all kinds of other APIs and tools they seem to offer. All I want to do is issue a web request and receive a JSON or XML response containing Google's standard search results, and be able to page through them with new requests, etc. Where can I find this? ...

Exception Problem when using Google Documents List Data API with PHP

Hi, I am trying to upload, download documents and spreadsheets using Google Documents List Data API with PHP. I gone through the documents and FAQ's. Only version 1.0 is available for sample using php in Google Documents List API. When i am registering my localhost domain with google domains it says not verfified even i tried with both m...

PHP: word definition script?

I am developing a web page in which I am accepting input words from user and when user will submit those words then I want to display definition of those words or wikipedia link of those words for more definition about that word. Something like below: Let's say user enetered 5 words: toast, egg, beans, coffee, tea Now I want to displ...

Is there a Windows hook for when the internet is connected/disconnected?

Possible Duplicate: Is there a Windows hook for when the internet is connected/disconnected? I could do an endless timer checking IsInetOffline(), but I would prefer a hook callback that tells me when I plug/unplug the ethernet network cable or connect to wireless internet. Is there such a thing in the Windows API? ...

java scripting API - how to stop the evaluation

hi, i have writen a servlet that recives a java script code and process it and returns the answer. for that i have used the java scripting API in the code below if script = "print('Hello, World')"; the code will end properly print "hello world". but if script = "while(true);" the script will loop endlessly. import javax.script.*; pub...

Truncate mediawiki

Hi all, I'm working with the mediawiki API ( e.g. http://en.wikipedia.org/w/api.php) and I would like to be able to 'truncate' the mysql tables in order to reset the local installation while keeping some tables (users, ?...). What would be the SQL queries ? I would say: tuncate all the tables but ${PREFIX}_user and update ${PREFIX}_us...

ASP.NET MVC - Using cURL or similar to perform requests in application

Hello There, Actually I'm building an application in ASP.NET MVC (using C#) and I would like to know how I can perform calls like curl http://www.mywebsite.com/clients%5Flist.xml inside my controller Basically I would like to build a kind of REST API to perform actions such as show edit and delete, such as Twitter API. But unfortunately...

How do I get a list of the window titles on the Mac OSX?

I want to get the list of window titles of the currently running applications. On windows I have EnumWndProc and GetWindowText. On Linux I have XGetWindowProperty and XFetchName. What is the Native Mac equivalent? ...

Apple Magic Mouse Api

Hi all, I just bought a Magic Mouse and I like it pretty much. But as a Mac Developer it's even cooler. But there's one problem: is there already an API available for it? I want to use it for one of my applications. For, example, detect the user's finger positions, swipe or stretch gestures etc... Does anyone know if there's an API for...

Creating a custom API in ASP.NET

I'm creating a site, and I need to create a basic API. Unfortunately I have no idea where to start. My site will basically keep track of errors from other users' ASP.NET sites, and they can come to my site to filter through them, search through them, comment, resolve, etc. I need to create an API, where the user can insert a few lines...

How to script a google search without google license key?

Hello all, I'm looking at 'pygoogle' python library for google search, call from my python script. But google doesn't give out license key anymore, and looks like pygoogle needs license key to work. Does anyone have suggestions of libraries to use for scripting web searches? Languages doesn't matter. It can be in python, perl, lisp, fo...