api

How do I specify if the shipment is commercial or residential in UPS API ?

Hi, I'm using UPS api for shipment rate calculator within US. How do I specify if the shipment is residential or commercial ? ...

Using oAuth (Twitter, LinkedIn) for login to a web app

Should I use oAuth, for example LinkedIn or Twitter, as my signin mechanism for my app? It seems that most apps just use oAuth to connect other services to it, but they make you set up your own user/password after you use oAuth (including StackOverflow), and I'm not really sure why this is. Would love some insight here. Thank you. ...

Does my API design violate RESTful principles?

Hello everybody, I'm currently (I try to) designing a RESTful API for a social network. But I'm not sure if my current approach does still accord to the RESTful principles. I'd be glad if some brighter heads could give me some tips. Suppose the following URI represents the name field of a user account: people/{UserID}/profile/fields/n...

Problem with twitter API: cannot update status

I am trying to create Google Chrome extension that will send interesting links to twitter. But, I am unable to connect to the Twitter. The server gets my request, but the response is always the same: "You do not have permission to access /1/statuses/update.json on this server (403 Forbidden)." I am using Wireshark to inspect Http respons...

C# CreatePipe() -> Protected memory error

Hi all, I trying to create a pipe using C#. The code is quite simple but I get a error saying "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Here the COMPLETE code of my form : public partial class Form1 : Form { [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastErr...

Need a advise on chat application solution integration for asp.net website.

Dear sir/madam, I am building an asp.net web portal. We have a client requirement for live chat integration with our web portal. I was searching for a free online chat service, but i couldn't able find one which i am looking for. My requirement is similar to providesupport.com online help. At the end, as usual i am raising my request...

Facebook require_login() in iFrame App

Hi, I have serious problem with iframe application. I need to use many external JS libraries and other dynamic stuuf so FMBL application can't be done. When I call require_login() I get applicaition installing dialog when app is not already installed, which is ok. But then after authorization application enters an endless redirect loop ...

How is the BIOS used by a modern OS?

What's the function of the BIOS in a modern OS? Is it still used after booting? And is there some kind of BIOS API? ...

What device manufacturers have their own Java ME API's

I know that BlackBerry and Nokia provide their own API's that go above and beyond what is specified in MIDP, CLDC, or any of the JSRs for Java ME. I am looking at a few other platforms for Java ME development and needed to know: Do Windows Mobile, LG, Samsung, ZTE, or Huawei provide their own API's for Java ME development? Edit: It i...

Song search and stream preview API

Hi, Is there an API where I can search for a song, and then stream the preview of the song on my site? Looked into Amazon MP3, but I can't seem to find an API for Amazon MP3. Also looked into last.fm Track.Search api, but seems like the return value doesn't seem to give the actual filename. (i.e mp3 etc), which means I can't stre...

Characters problem in Bit.ly

Hello, When I try to shorten a link with "#,&" character I get an exception. Is there a way to handle these character properly? This is a sample code that works: String shortUrl = bitly.getShortUrl("http://z"); //Works If I add for example '&' or '%25' to the string it will throw an exception: String shortUrl = bitly.getShortUrl("h...

How to throttle clients in a REST API

I want to limit clients to an upper limit of number of calls to my REST APIs. What should I return to inform clients that they've been throttled ? Amazon S3 is returning HTTP 503 with an error code SlowDown to inform clients. What do you advise ? ...

RESTful Question/Answer design?

This is a toy project I'm working on at the moment. My app contains questions with multiple choice answers. The question url is in the following format, with GET & POST mapping to different actions on the questions controller. GET: url.com/questions/:category/:difficulty => 'ask' POST: url.com/questions/:category/:difficulty ...

Is there a way to change the map data for the Android Google Map API?

I need to use a different datasource inside a map in Android than the google provided data. Is there a way to change the datasource to a tile based service (openstreetmap.org for example)? Or are there other Android map APIs which are OpenSource and can be adapted (except Ericcson Mobile Maps - this doesn't work for me because of the li...

Getting number of hits from Google API

I've tried to find a way to do this, but without success. I'm looking for a way to find out how many hits a search gets, and I don't want to do this manually, or with regex searching trough the html code. Surely the Google APIs must have a simple way to do this. Does anyone know of one? ...

Using ASP .NET Membership and Profile with MVC, how can I create a user and set it to HttpContext.Current.User?

I implemented a custom Profile object in code as described by Joel here: http://stackoverflow.com/questions/426609/asp-net-membership-how-to-assign-profile-values I can't get it to work when I'm creating a new user, however. When I do this: Membership.CreateUser(userName, password); Roles.AddUserToRole(userName, "MyRole"); the user...

Invoke an action that is using ASP.NET MVC [Authorize] from outside the application

Is this possible? I'd like to expose a URL (action) such as http://mysever/myapp/UpdateHeartbeat/. In my MVC application it looks like [Authorize] [AcceptsVerbs(HttpVerbs.Post)] public ActionResult UpdateHeartbeat() { // update date in DB to DateTime.Now } Now, in my MVC application the user has logged in via FORMS authenticatio...

Could you help me understand how to create a C# api by setting the scope of methods, objects, properties, ect. to public?

The answer to this SO question says that you can create an api by exposing methods, objects and .ect by setting their scope to public. http://stackoverflow.com/questions/630971/how-to-start-creating-an-application-api-in-net One of the main things I want to expose is the text of a textbox. Would the best way to do this be to create a p...

Interacting with RESTful API's via Javascript?

Hi there, to start off, I know C++, C#, Python, some Ruby, and basic Javascript. Anyway, my question revolves around how to interact with RESTful API's via Javascript. I haven't been able to find any good examples on various websites, and so I've come here. So my basic question is: How do I interact with RESTful API's via JS? And where...

Web service for Timezone based on Location

Hi, Is there any web service available that returns the information of Time zone based on the location name entered. I am preparing the application where in user will enter the place, based on the place entered, I need the information of the timezone (preferably current time and date) of that particular location. Kindly help me. Rega...