api

How do I get the colour of a pixel at X,Y using c# ?

How do I get the colour of a pixel at X,Y using c#? As for the result, I can convert the results to the colour format I need. I am sure there is an API call for this. "For any given X,Y on the monitor, I want to get the colour of that pixel." ...

How could I resize any given application window?

How could I resize any given application window in c#? (Perfect example would be to launch Explorer, and move it to 0,0 and resize it to 800 x 600) ...

API for developers. What Content-Type should I use?

I'm developing now API for developers feature, which gives users API access to some functions of our product. All responses are in json format. HTTP Content-Type header in our server's response is text/plain; charset=utf-8 Should I send one of this: application/json text/x-json text/json instead of text/plain. Or for API feature ...

Crystal Reports API - chart: "for all records" or "for each record"?

Is there any way to determine whether a chart in Crystal Reports 2008 (using either the RAS SDK or the older RDC API) is set to display values "for each record" or "for all records"? I can get access to a CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject but can't find any API there to access which type of chart it is - "for e...

Logging calls after hanging up on smart phones

In the various smartphone APIs/SDKs, I was wondering if it is possible to prompt a user if they'd like to log a phone call after they hang up. The most basic functionality would be after calling out or receiving a call, the phone would ask Do you want to log the call to|from 555-555-5555? Yes | No | Never this number (then it might tak...

Twitpic API from iPhone - pic posted but no URL returned?

This is a weird one... With the help of people here, I've got my iPhone app posting to TwitPic successfully - and when I first got it working, I could see an XML result being returned too... But for some reason over the past two days, the API call seems to succeed - the pic appears on TwitPic - but... the response seems to be empty... ...

How to make the hybrid the default map on Google maps API?

Google Maps just made the API exactly like the real thing. So now I want the map to display the hybrid map by default, I looked all over Google's Documentation, but I can't seem to find a way to do this. Thanks in advance! ...

School Locator by Address API ?

Does anyone know of an API or web site where if you enter in a home address, and it will return the listing of what elementary, middle/jr high, and high school that home is zoned too? I've found some for particular states and some large cities but nothing at a national listing services so that you can enter in any address (regardless of...

how can JIRA soap API not have this method?

I want to be able to get a list of issues given a: Project Name and Release Version this seems like a basic JIRA soap API 101 request It seems, looking at the documentation: http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/index.html?com/atlassian/jira/rpc/soap/JiraSoapService.html you can get issues by: Fil...

Get perforce data into a .NET application

Hi all. I'm curious as if anyone has used any method of getting data from perforce into a managed language. I've found a few sample applications out there, and I'm hoping someone here has had success in doing this and could offer some advice. Thanks! ...

Using JSON in Javascript to obtain results from Google Search Ajax API

Hi! I am trying to obtain the url from the innerHTML of a web page using javascript. This is what I'm doing: var goog = newTabBrowser.contentDocument.getElementsByTagName("pre")[0].innerHTML; alert(goog.responseData.results[0].url); BUT it wont work :S I outputted goog (using alert) and copied that into my program as follows: v...

Developing API: balance between new features and back compatibility

I'm working now on an API for developers feature of our product. The first version was released and it has small number of users at the moment. Since I started to develop its second version, some parts were reworked, some parts were removed to make the API more elegant and clear. But the 2nd version deployment can be a pain for old ver...

Is it possible to create URLs to items on the Apple iTunes store programmatically?

Is it possible to create URLs direct to items on the Apple iTunes store programmatically? I have noticed that last.fm and similar sites have links which take the user directly to a part of the iTunes store, such as an album page. The URL for the link is created by last.fm. Here's an example of such an URL: http://www.last.fm/affiliate_...

API to programmatically refactor Java code

Do you know an API to programmatically refactor Java code. Preferably: easy to use support for rich refactorings ...

C API Design for an on-disc hierarchy - best practices

I'm writing my first major C API, and I want to get things right. The library allocates and frees memory for an internal struct - which is hidden from the client using a typedef. The rough structure of the data I'm providing access to is this: disc->program->track Associated with the disc are things like file descriptor to read from, s...

Is there a JSR 257 ("Contactless Communication API") C API available?

I am trying to implement JSR 257 ("Contactless Communication API") API and required to use C programming language. I am wondering if anyone knows of similar C API available so one can use as a basis. What would be a best approach to do this? I am thinking of going ahead and starting to design/implement one but do not want to re-invent if...

How to do authentication within a HTTP service?

We currently have a website that has user account functionality, but we are looking to provide an API to allow users to manage their accounts/perform actions via other devices/websites, by providing an API for common tasks. Currently the website login is done via HTTPS for security, and then managed using PHP sessions with suitable secu...

c# WebRequest to connect to wikipedia API

Hey, This may be a pathetically simple problem but I cannot seem to format the post webrequest/response to get data from the wikipedia api. I have posted my code below if anyone can help me see my problem. string pgTitle = txtPageTitle.Text; Uri address = new Uri("http://en.wikipedia.org/w/api.php"); HttpWebRequest request =...

Is there an API in .net to read XML comment documentation file.

In this question I see that microsoft ships the XML documentation files for the BCL. I wonder if anyone knows if there an API within .net that can be used to look this up at runtime. I know we can parse the files manually using the XML api. The use case is that we allow custom (read 3rd party) types/assemblies to be used in our system, ...

Are there any naming convention guidelines for REST APIs?

When creating REST APIs, are there any guidelines or defacto standards for naming conventions within the API (eg: URL endpoint path components, querystring parameters)? Are camel caps the norm, or underscores? others? For example: api.service.com/helloWorld/userId/x or api.service.com/hello_world/user_id/x Note: This is not a que...