api

Should I use an API/ABC when designing a class used by several in C++?

Hi, I am about to add a class X that will be used by my three previously designed classes (A, B and C). The new class X will contain data and functions for new features as well as provide services to the classes that use it to hide lower layers. The problem is that A, B and C will use class X quite differently, that is, use different ...

clutter UI library wrapper

I want to use Clutter library but not in C/C++ languages. I want a more high level, maybe dynamic language for easy & speed of development to prototype some UI ideas. Also, if posible, it must have stable & complete api coverage. ...

paypal api processing transaction despite of wrong billing info and wrong credit card type.

paypal api processing transaction despite of wrong billing info and wrong credit card type. All it does is even though avscode== x or n a or z, it is seeing for ack==success and if yes the transaction is being processed. How do i stop this? i want it to check ack==success and avscode==y `$post_str = 'USER='.urlencode(PP_API_USERNAME).'&...

Approach for decoupling persistence from domain objects?

I understand that it's better if objects are not responsible for their own persistence (makes testing the objects easier, plus separation of responsibilities), but then what object should handle persistence of domain objects, and what should the persistence API look like at a high-level? ...

"Standard" way to authenticate users with a REST API

I am writing a REST API where some resources are only available to specific users. What is the generally accepted mechanism for this? Amazon appears to use the Authorization header. Twitter uses Basic Auth, i believe. what are the benefits and drawbacks? ...

How to create QR code image with company logo.

Hi, We are using a lot of QR code around our office. I would like to know if we can generate QR code with a small company logo in the middle. I have seen few examples online. But I want it to generate it automatically instead of user manually editing it with photoshop software. I appreciate any help. Thanks. ...

jira SOAP and XMLRPC

I was wondering if there are urls for the various calls that can be made to jira. get issues, get users. what format are they in xml? json? I want to write a wrapper class in python. I see the SOAP api exsists but no methods definitions in python anywhere I can find. I found the java one fairly easy. Your help is appreciated. Please a...

iPhone API - Sending electric signals thru audio jack.

Anyone know if this is allowed by the iPhone's various Api's or even if Apple allows this? Example: Plug something in the audio jack and use it as a "taser" (this is just a hypothetical/proof-of-concept example). ...

Microsoft Office Word 2007 .docx manipulation via software C++ / Javs SDK

Hi, I am looking for a C++ / Java SDK for manipulating .docx documents. I need to read the text, add a new page at the beginning, add footer and header etc'. Not one that works with COM / OLE Automation for Word. But a real SDK. Thanks ...

Google Maps API - V2 key x V3 no key

Ok, Google Maps API V2 needs a key and V3 doesn't. My question is exactly why is that? What was the key for? And why did they take it away in V3? ...

How do you move a SharePoint 2010 DocumentSet from one list to another?

I've tried many variations. Send To Library - That creates a Zipped file in the Drop Off Library, then it doesn't route via the rules in Content Organizer API - I've tried to do an Export, Import, but always receive the same error. This is per this MSDN documentation: http://msdn.microsoft.com/en-us/library/microsoft.office.documentm...

How to get Messenger contact list through .NET

Hi, I want to be able to get the list of Messenger contacts of a certain user through .NET. I've seen Messenger Connect, but it's still under beta and with limited access. Any ideas for easier alternatives? I thought it would be as easy as invoking a WCF service. Thank you for your help. ...

Correctly sizing Alsa buffers, weird API

I'm currently working on a project that requires me to do some sampling with Alsa. I'm trying to configure correctly everything but I'm stuck on how to correctly size my reading. There are two primitives that seem to be interesting for my task: snd_pcm_hw_params_get_period_time snd_pcm_hw_params_get_buffer_size The name of the first ...

How to invite a users friends to an event? Facebook Graph API

I have an application using the Graph API. I have it creating events for the user, but would like to let the user invite their friends from our site instead of having to go to the events Facebook page. Does anyone know of the request I have to send the friends' IDs too to invite them like with the old API? Or if it even exists? I am find...

How to interact with the Panoramio API using services?

Hi guys, I'm writing a location base client and would love to integrate Panoramio with my client, now the problem is that I can't find a way to interact with the Panoramio using a ~REST-like service. I know they do have an API but it's mostly for embedding the content into a website and not as to interact thru me code (at least from doc...

Bing Maps Silverlight Extended Modes API

Hello friends, I need to have this API badly quickly. I went on Microsoft Connect but there is nothing even wasted the whole day making research on forums but found no suitable answer. Can you please just upload it somewhere and put link here? Umair ...

Facebook api for beginners? help

so what i want to do is basically embed a facebook photo album from a fan page into a website- i guess making something using their api is the only way to do this because i couldnt find anything already made. only problem is i have no idea how to get started with whatever language theyre running- ive looked through their faqs and stuff...

Retrieving the comment count in from a Facebook comments box

I use on my website, but I can't figure out how to retrieve the comment count from a comment box with a specific XID. I've tried intercepting all new comments with the following code: FB.Event.subscribe('comments.add', function(response) { alert("Comment was added."); }); I never receive the alert though. Any ideas? I just need the...

Does the Tumblr write API require encoding on the 'body' of a post?

Hi guys, I'm trying to implement the Tumblr API into an app. I've hacked together their OAuth implementation but I'm having an issue with their write API. When I send a post body with no spaces in, it posts correctly. But if there is a space, I receieve an 'Invalid Oauth parameters'. Below is a rough example - I hope someone can help!...

Change background color of a scene in mt4j without clear

Hi all, I'm messing around with the examples of mt4j multitouch Java library and in the "advanced.drawing" example, i'm trying to change the background color of the drawingScene. Since it has set the setClear to false i'm not able to do it with the clearColor option. Any other ideas? Thanks ...