api

Where is XMLHttpRequest.responseStream defined?

Take a look at the graphics part of the GoogleAPI reference. It says that loadImage takes either a string, or the responseStream property of an XMLHttp. By XMLHttp, I assume it means XMLHttpRequest. My problem is that I can't find documentation for this field (the responseStream field) anywhere. I've had no luck googling it (ironc), it...

Notification on workspace.Get() completion

For a Microsoft.TeamFoundation.VersionControl.Client.Workspace object, when calling the Get() method, is there a way to know when the operation is complete? I see there is a callback param in the Get() method, but it seems like this is fired once the files have been identified, but not before they're actually 'got'. More of a way to inte...

Restaurant back-end systems and .Net

How would I programmatically connect to an existing back-end system of a restaurant using say Micros POS, with a web app built with .Net and C#. Thanks. Update: Sorry for the ambiguity but I'd like to set up an online ordering system that takes users' orders and forward to a restaurant's back-end system to be processed and printed in th...

Design of a polling event API

Say you were designing a C++ windowing library. It may or may not provide a callback API, but needs to provide a polling API to facilitate a functional style of programming. What would the polling API look like? Some options SDL style struct Event { enum { MousePress, KeyPress } type; union { struct { Point pos; Mouse...

Where to get started with APIs

I have never worked with APIs before (and have very little programming experience outside of HTML and CSS) and I am struggling to find any clear tutorials or explanations. Do APIs all work in the same way? Can you use any programming language or only a specific language or does that depend on the API? Is there a common way to work with...

C# is probably not the best choice for a security application?

I have stumbled in this phrase in the web: "C# is probably not the best choice for a system-level application like this. I believe plain C++ is much better here as you will need to do lots of low-level API calls." I was searching about security programs made using c#, like firewal, parental control, anti-virus, anti-spyware, etc. So, ...

REST interface for finding average

Suppose I want to create a REST interface to find the average of a list of numbers. Assume that the numbers are submitted one at a time. How would you do this? POST a number to http://site.com/api/average If this is the first number a hash will be returned POST a number to http://site.com/api/average/hash .... GET http://site.com/api/a...

How much low-level stuff to expose in an API?

When designing the public API of a generic library, how much of the low-level stuff that's used internally should be exposed? On the one hand, users should not depend too heavily on implementation details, and too many low-level functions/classes might clutter the API. Therefore, the knee-jerk response might be "none". On the other ha...

Will providing APIs help deter screen scraping?

I have been thinking quite a bit here lately about screen scraping and what a task it can be. So I pose the following question. Would you as a site developer expose simple APIs to prevent users from screen scraping, such as JSON results? These results could then implement caching, and they are much smaller for traffic than the huge amo...

Naming: What would you call a rich API that wraps around a thin API

I have a "thin" (SOAP) API that only knows how to set and get entities in the underlying system. I am about to to create a "rich" API that encapsulates the "thin" API and implements the logic that is required for complex operations that entail getting and setting several entities in specific order. Example: The rich API will be respons...

SugarCRM: Deprecated SOAP API calls?

Is it true that most of the web methods available in SugarCRM's SOAP API are now deprecated and replaced by set_entry() and get_entry() ? For example, if I want to create a new lead should I use create_lead() or should I stick to set_entry() on "Leads" instead? ...

What is the different between API functions AllocConsole and AttachConsole(-1)?

Could you please explain me, what is the different between API functions AllocConsole and AttachConsole(-1) ? I mean if AttachConsole gets ATTACH_PARENT_PROCESS(DWORD)-1 Update: Sorry! My mistake. Of course AllocConsole instead of CreateConsole! ...

How do I get a book graphic and description from the Amazon Book API?

The following URL sends an ISBN number to Amazon and gets back a small bit of XML including author, title, and publisher. http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=13529AWJ97PJXSM2K1R2&Operation=ItemLookup&ItemId=1590599659 However, I also want to get small, medium and large graphic a...

What's the best tool to manage documentation for Restful API?

I'm building a RESTful API in ASP.NET. I'd like to document its features with a tool that will keep all the functionality and actions organized and grouped for easy editing and can export the documentation in various formats (HTML, PDF). I'm not looking for an auto-generating script that will parse my code - especially since the intern...

Best design to implement "Default" item in collection

For my example, I have a Person class with an arbitrary number of associated Addresses associated with it. So there will be an Addresses collection as a member of the Person class. In many applications which use the Person class, we will just want to retrieve the "Default" Address object. There are a few design questions regarding the...

how to force Java print graphics in 300dpi

as I googled for problem, somehow java printing API is crippled with limitation that all pictures sent to printer must be printed in 72dpi resolution. We are using jasper report to print documents and no matter how big barcode we draw, barcode reader won't scan it.. any similar experiences? How to solve this issue? ...

Is there a movie showtime api?

Does anyone know of any (preferrably free) supported api's for accessing movie showtimes by zip code? I don't believe any existing api's, such as netflix or imdb, provide this information. Thanks! ...

Language Agnostic API

I am planning on putting up a web service, or some other service exposed over the internet. I would like to create an API for applications to interact with this service. I would like the API to be usable in different languages, such as Java, C++, C#, or PHP. How can I maintain one code base for my API, but distribute nice packaged bin...

How do I access information about a cascading dynamic prompt via Crystal Report API?

I am using the CR 2008 RAS API (but could also use an older API if needed). Any idea how to access information about the settings for dynamic prompts in a report? I can access the PromptField objects with dataDefController.ParameterFieldController. GetPromptParameterFields(new PropertyBagClass()); but can't seem t...

Develop Blackberry apps using native API or J2ME?

We're about to build a Blackberry application but would love some input on whether to implement using J2ME (MIDlet based) or Blackberry native (UIApplication). I understand some of the tradeoffs. J2ME will be more flexible if we want to port the app to other devices. RIM has better support for Blackberry native. The place I'm still...