api

how to get key value of array with curl (php)

Hello I want to make use of an API but it print alot of info and i don't know how i can get a few key values of the array. <?php $query = "SELECT * FROM kvk WHERE adres='Wit-geellaan 158'"; $host = "http://api.openkvk.nl/php/"; $url = $host ."/". rawurlencode($query); $curl = curl_init(); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, ...

Search Netflix using API without the user being logged in?

I'm trying to search Netflix through their API, but without logging anyone in (because I want to do this on the back-end, not necessarily related to any user action). I'm just starting off with their API so please forgive me if I'm doing something completely stupid. Here's the URL I'm trying to access: http://api.netflix.com/catalog/tit...

Programatically change cursor speed in windows

Since getting a satisfactory answer on SuperUser is very difficult, I want to rephrase this question and ask: Is there any way to programatically detect a mouse was plugged in the usb port, and change the cursor speed in windows (perhaps through an API)? I'd like to use C#, but I'm open to any language that can run on a windows 7 machi...

Removing the Google Maps API Premier Terms-of-Use/Logo/etc. links?

Hi, is it legal to remove the logo/terms of use link displayed on my integrated google map (google maps premier)? The problem is that when I zoom into the map, the link tends to get longer and loger and overlays the whole website which is pretty ugly. Of course it is possible to give the div container a "overflow: hidden;" flag which hel...

Facebook API Question: Status

Hi I see that for fbUser.status.message is sometime not populated but fbUser.status.time is still populated. Does that mean the user cleared the status at that time? What does it mean then to have neither? Thanks, ...

How to create PHP post\get API (EAZY LAZY and PROTECTED way)?

How to create PHP post\get API? So tooday I have crapy mix of PHP and HTML and JS. I need to open some of functions I use in my site to Developers so thay will be able to use my site data in their APP's. What is the EAZY LAZY and PROTECTED at the same time way to do such thing? ...

Upload images API on 3rd Party host .. Flickr ?

I am building an Image Sharing feature for my website, where users can upload images and show it off on my website, through their own profile gallery. Except I dont want to physically host the uploaded images. Are there API's that can allow me to descretly save the uploaded images (from the users) to another Host, such as Flickr, Googl...

Oauth callback problem

I am using OAuth with google data api. We have a portal only for authorized users. So when users are logged in and if they are accessing calendar page, they will be asked if they want to sync their calendars with google calendar. If yes, they will be redirected for authentication. Once user has granted access, google appends OAuth_Token ...

Google API to check number of indexed pages?

Is there a Google API similar to Yahoo and Bing's API's to check for the number of indexed pages on a specified domain? For example, for Yahoo if I type in the following URL: http://search.yahooapis.com/SiteExplorerService/V1/pageData?appid=MTSlade&amp;query=http://www.dave-sellers.co.uk&amp;domain_only=1&amp;results=1 Then it will re...

about openID api

hi.. i want to use one existing OpenID API to check the consumers authentication, which i have to call inside a restful web service.. where can i get the OpenID API to use ?? ...

flickr api advice

Hi There, I am working with the API from flickr trying to get my photosets into my site, my problem is I am wanting to only show the primary image for each set but current it is showing all the images from each of my sets. Can anyone see where I am going wrong? <?php $f = new phpFlickr(FLICKR_API_KEY); $f->enablecache("fs", $...

using paypals html api is safe?

im trying out paypals html api where you specify price, item_name, customer information and so on in the html: <form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="payPalForm"> <input type="hidden" name="cmd" value="_cart" /> <input type="hidden" name="upload" value="1" /> <input type="hid...

onDailyMotionPlayerReady() is not working

I am trying to use the dailymotion javascript API.. but i am facing some problems onDailyMotionPlayerReady() is not working Please help. ...

Fetch excerpt from Wikipedia article?

I've been up and down the Wikipedia API, but I can't figure out if there's a nice way to fetch the excerpt of an article (usually the first paragraph). It would be nice to get the HTML formatting of that paragraph, too. The only way I currently see of getting something that resembles a snippet is by performing a fulltext search (example...

Getting the CVE ID Property of an update from WSUS API via Powershell

I am writing a script in Powershell to get the update information from each computer and correlate the information with another System which identifies updates by CVE ID. I have discovered that there is a "CVEIDs" property for an update in WSUS, which is documented in MSDN, but I have no idea how to access the property. Retrieving the CV...

Make a collection with movies

Hello, I need to make a collection with a lot of movies, but I was wondering if there is something like API or other method to make that database automatically? I will be using Ruby on Rails, but if there is a useful and fast tool, I will use it. Thank you. ...

flickr phpflickr api

Overview I am trying to get a photo feed on to my site using Flickr's api and the phpflickr library. I can successfully get the photoset on to my site, but it shows all the photos from every photoset, what I was hoping to achieve was to show the primary photo from each photoset, and then if the user clicked on the image it would show th...

Magento Api and Downloadable Url

I need to know how to set the downloadable URL for a downloadable new product created using Magento API. Problem is find the appropriate array value for the downloadable URL. here is my code: $productData = array( 'name' => $stealth_item->Title, 'websites' => array(1), 'short_description' => ltrim( ereg_replace( "\...

What if I have an API method and a contoller/view method with the same name in RoR?

Suppose I want to be able to view a list of products on my site by going to /product/list. Great. So this uses my 'list' view and outputs some HTML which my web browser will render. But now suppose I want to provide a REST API to my client where they can get a list of their products. So I suppose I'd have them authenticate with oAuth an...

Weather API for web app

Hi, In the weather.com site it has forecast for 10 days. For example, in this url: http://www.weather.com/weather/narrative/GRXX0004 I cannot seem to find a feed for that kind of data. Could I pull a feed for each one of those days? Is there something I am missing? How could I easily parse data for 10 days? Thank you! ...