api

3-legged-oauth and Google ContactsClient problem

Hi I am using 3-legged-oauth to import a users' Google contacts in my app. I did not find the ContactsClient library but i was using only the ContacsService and i was fetching the ContactsFeed but that resulted to not having a lot of data. After the user allows my apps i store the auth_token key and secret so i can run a cron task to fe...

Help with Imgur API and VB.NET - Image POST.

Hi, I'm trying to send an image to Imgur's server. Everything went fine and I'm getting the URL of the image from the parser but when I'm trying to open it on the web browser, I'm not getting the image... only a "broken image" icon. I think it's a problem in the convertion to the byte array.... but I don't get it. please let me know/fi...

Paypal integration with PHP

Hai, I need a system that automatically transfer funds from one paypal account to another paypal account when i click on a button. Is there any paypal API with PHP to perform this task. thanks ...

How to get the list of price offers on an item from Amazon with python-amazon-product-api item_lookup function?

I am trying to write a function to get a list of offers (their prices) for an item based on the ASIN: def price_offers(asin): from amazonproduct import API, ResultPaginator, AWSError from config import AWS_KEY, SECRET_KEY api = API(AWS_KEY, SECRET_KEY, 'de') str_asin = str(asin) node = api.item_lookup(id=str_asin, Re...

How to conditionally format using Google's Visualisation API

I have the following code to format a link in a data table. function drawTable() { var query = new google.visualization.Query('http://somewhere.appspot.com/table'); query.setQuery(queryString); query.send(handleQueryResponse); } function handleQueryResponse(response) { if (response.isError()) { alert('Error in q...

Sending SMS using Way2sms on rails

Hi Friends, Can any one help me to send sms using way2sms api by means of rails application. Thanks ...

Is there any public javascript version of the Wikimapia "add place" functionality?

Hi! I'm wondering if the Javascript functionality Wikimapia.org has for adding a new place (Goto Edit Map -> Add Place) is public available? I want this functionality but place in on my own pictures and div's (to create some kind of custom imagemaps or something like that). Is this possible or is there anyone that can reproduce this f...

How do I use the session in WebView in my other stuff (Android)?

The user must login through the WebView. Of course, the session is for that WebView. But, what if I need to make REST API calls during my Android application? Those REST API calls need the session to be authenticated , otherwise those will not work. Is there any way I can attach the cookies of WebView into everything I do in Android? ...

Alternative to WhitePages API?

I'm using the WhitePages API ( developer.whitepages.com ) to get a phone type (landline or cellular) and the phone's service provider (Verizon, T-Mobile, etc), but they only have a personal API which limits you to 2 calls a second and/or 1,500 calls a day. The paid version, or "Pro", is a minimum of $500 a month and/or $0.10 a call. Doe...

Making JSON Feed Work Server to Server

I have a JSON feed (which I don't directly control, I have to ask the server admins to update it), that is returning NULL, or otherwise not working when I try to access it from another server. The actual feed works fine, but I can't get it to work like a normal API. Why can I use Flickr, WhitePages, Twitter, etc's JSON APIs, but for: ht...

Allow user to add directions on a map (google maps API)

I know you can programmaticaly add markers for directions on the map. But how do you let the user do that? Like on the Google maps site, you just right click and then click on 'directions from/to here' and the marker is added. This functionality seems to be absent from the API. EDIT: Maybe I wasn't clear enough. I am not talking about t...

Twitter4J: Get all statuses from Twitter account

Hi! I'm using Twitter4J API for my application. I want to get all the statuses I had on my Twitter account (or if not all, most of them). Is this possible? Currently I am using getUserTimeline() but this only retrieves the last 20... Thanks a lot and regards, Krt_Malta ...

C# API to create webpage thumbnail

Is there an API that can be used to generate thumbnails of a webpage in C#? I don't want to use third-party websites as I'd rather render them myself. ...

Windows - CPU power management APIs

What APIs are provided by Windows for CPU power management (I'm interested in CPU frequency scaling, setting min and max CPU frequency - similar to what you can do in Control Panel in power plans, but in a programmatic way). I'm also interested in .Net APIs. (It is not something I intend to use in a production environment, but rather as ...

How do you access the commit message in a Mercurial in-process hook?

I've been trying def debug_hook(ui, repo, **kwargs): changectx = repo[None] ui.status('change.desc: %s\n' % changectx.description()) return True But it always prints an empty string. Is this because it is a precommit hook and the message isn't available yet? Or am I just missing something obvious? ...

Export contacts from ACT, Salesforce, Outlook, QuickBooks, etc.

What API's / SDK's / software tools are available to export contacts from popular CRM and accounting packages? What I'd like to do is offer an address book in my web application and have a button that says "Upload your contacts from X". The user could then click a few buttons and his contacts would be automagically uploaded from X. A ...

Is it a good design to return value by parameter?

bool is_something_ok(int param,SomeStruct* p) { bool is_ok = false; // check if is_ok if(is_ok) // set p to some valid value else // set p to NULL return is_ok; } this function return true and set p to a valid value if "something is ok" otherwise return false and set p to NULL Is that a good or bad ...

twitter api is throwing exception "# is not a valid value for Int32" while getting freinds

i am using the api twitterizer.framework while getting the friends of a user the api starts throwing this error. # is not a valid value for Int32. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex at System.ParseNumbers.StringToIn...

Show facebook status stream of a dedicated person on a website

Hi all, I've been stomping at this all day :( I want to display a status feed of both twitter and facebook on my website. For twitter, this is not a problem, as my account is public, I can easily get the feed. Facebook however, is a whole different story! I can't seem to find an easy way to just get my last status updates and display it...

i want active my program when user click on folder in "explorer"

hi i`m C# programmer i want to active my program when user click on folder in "explorer". TNX ...