api

buy/sell virtual "credits" on a website, is there some easy to use API or something

the users on a website need to have the possibility to buy/sell website's currency (credits in exchange for real money), is there some easy to use API to do this (that is usable in asp.net mvc) ? the user can: buy website's currency for real money and get real money for website's currency is this possible with paypal ? ...

How can I hide methods in F sharp?

I am currently implementing a Spec framework in F sharp and I want to hide the Equals, GetHashCode etc. methods on my should type, so that the API is not cluttered with these. I know in C# it is done by making the class implement an interface like this: using System; using System.ComponentModel; public interface IFluentInterface { ...

How to access database of jasper server via API?

Can we access Database of Jasper server through its api? And do that allow us to make run time report? IF so how can we do that? Kind regards Sundhas ...

AllocHGlobal equivalent in VB6

All, I have to write some share permission code in a legacy VB6 application. I know I will have to use API calls, and found a good example here. But I'm not clear on how to achieve some of the same functionality from VB6, mostly with memory allocation. For example: pTrustee = Marshal.AllocHGlobal(Marshal.SizeOf(t)) BuildTrusteeWithSid(...

Sending MESSAGE to a person on facebook using python

I want to make a script that can be used to send messages to our friends on facebook. How do I proceed? Which is the best module to use? ...

Upload a library photo with Android web browser

As is disabled on Android, is it possible to upload a photo from library, in Browser somehow? Camera/Photo Library JavaScript API? Thanks ...

javascript hide code for secret keys etc

I am using the Ribbit javascript api and trying to figure out how not to show the secrety key and all those application settings which are set in a code block using a Ribit.init function: Ribbit.init("consumerKey"); ...

GNU Smalltalk API?

I have recently been learning Smalltalk, mainly by going through the tutorial at gnu.org. While it has been really helpful and I have learned a lot, I would really like an extensive smalltalk API where I could view all of the built in objects and which messages they can receive, and what they will do with those messages. The manual ha...

Calculating Google map's viewport?

Hi, I'm doing a bit of geocoding using Google Local Search and need to be able to set the viewport of a google maps api v3 object on the page. Now this is fine if google local search has returned me a good viewport as it does for a postcode or street but if i put in the name of a bar for example. The viewport returned is very large pre...

Ebay API: How do I get "buy it now" items only?

There is much mentioned on ebay site. Maybe there's someone on SO who ever worked with ebay api. Could you please help me? ...

Avoid Primitives in API design?

I am designing an API. It will have a lot of methods which do the same, but have a different parameter primitives. public void someMethod1(int x); public void someMethod1(float x); public void someMethod1(double x); public void someMethod2(int x, int y); ... public void someMethod3(int x, int y, int z); ... Due to the primitives, I ha...

How to access and work with XML from API in C#

My goal is to pull XML data from the API and load it to a sql server database. The frist step I'm attempting here is to access the data and display it. Once I get this to work I'll loop through each row and insert the values into a sql server database. When I try to run the code below nothing happens and when I paste the url directly int...

Is it possible to pull Flickr photos based on search term?

Is it possible to pull photos from the Flickr API based on a search term? Not necessarily something from my profile, but from any public photo that matches the search term. Or is the Flickr API only for pulling your own, or another authenticated users, photos? Thanks! ...

How to find undocumented iPhone API calls?

In the early days of the iPhone development apps are often kicked out of the AppStore for using undocumented API calls. I always asked myself how people found out about these methods and what they do. I know a little about Objective-C and I know you can send any message to any object or you can even check if an object will answer to a me...

Crossbrowser JavaScript + DOM documentation

I'm already aware of some browser-specific DOM documentation out there (Gecko DOM Reference for Firefox, MSDN for Internet Explorer and, of course, the ECMA and W3C specs) but I wonder if someone has compiled a good API reference that covers all common browsers (Firefox, Internet Explorer, Opera, Safari, Chrome...). The compatibility ta...

iPhone Keychain

I can't get the KeychainItemWrapper (Apple example) to work. I've added the KeychainItemWrapper files to my project and when running it on the phone, an exception is thrown by SecItemAdd, saying that one or more parameters were not valid (result code -50). The code triggering the SecItemAdd follows: KeychainItemWrapper* wrapper = [[Keyc...

Get compound words from JWNL or JAWS Wordnet JAVA API

Hi i can see that in console, one can get a list of compound words for a noun with use of flag -grepn. I must use this feature in a java program and i cannot see something similar in the Javadoc of JWNL or JAWS wordnet java api. In fact i see that there is not such functionality, as getsynsets or getHypernyms etc. Any ideas ? Sorry ...

Having a POST'able API and Django's CSRF Middleware

I have a Django webapp that has both a front-end, web-accessible component and an API that is accessed by a desktop client. However, now with the new CSRF middleware component, API requests from the desktop client that are POST'ed get a 403. I understand why this is happening, but what is the proper way to fix this without compromising...

What does the term "blocking" mean in programming?

Could someone provide a layman definition and use case? ...

Can Bing or GMaps API do a "find my nearest" style search using a supplied XML/RSS collection?

Can either Bing or Google Maps allow you to pass in a collection of points and then interrogate that collection to only plot the X nearest points? I am asking because it may be difficult to pre-filter this data and would be much simpler to supply the entire list and filter it within the API itself. ...