Connecting Salesforce with Adobe AIR - actionscript-3

I am trying to Connecting Salesforce with Adobe Air Application i.e. pulling data from Sales force to the AIR application. I tried this with Developerforce toolkit. But its not working. I tried the example from this following reference http://wiki.developerforce.com/page/Taking_Data_Offline_Using_Adobe_AIR . Please help me in this. And also please tell me is there any way to connect salesforce with AIR application.
Note: Im using Flashbuilder as IDE.
Thanks in Advance.

The best way to do this is to use the OAuth code from the provided toolkit and then to use the Rest API with the various AIR HTTP classes to do the rest yourself, there's libraries available for parsing the JSON to local actionscript objects.

Related

Shared library between UWP and REST api

I have a REST service that has many commands that can be called to return JSON data. I have a library of the DTO's that I use to build this JSON. I want to reference this library in my UWP app so that I can ensure they decode correctly. However I cannot reference the dll in my UWP app. I tried the backwards approach too, adding a UWP library to my REST service and referencing it in my UWP app, however then I cannot refrence it in the REST API. Any suggestions?
Move all your DTO's to a class library built using .Net Standard 1.4
This will allow you to share code between your REST service and UWP app.

Xamarin WP8 DataTransferManager

Windows Phone API has the namespace DataTransferManager to share files from internal storage.
I'm trying to use this feature on my Xamarin App.
I got a WP8 XAML page displayed via Xamarin's PageRenderer. Inside this page I call DataTransferManager.GetForCurrentView() like described in many tutorials. But at runtime the App crashes with NotSupportedException.
Please help me on how I can share files (no pictures) from my App.
Thanks
I found a solution: Upgrading the WinPhone Project to WP8.1.
So far there are no errors with PCL and 8.1.

Owncloud json api

Does anyone know how to integrate with owncloud via json?
I'm coming for the point that if we implement owncloud in my organization, i will like to have the ability to build features into the ios app.
You can access the share API using REST:
https://doc.owncloud.org/server/8.0/developer_manual/core/ocs-share-api.html

LibSpotify and Windows Store App

I'd like to start work on a Windows Store App client for Spotify, using LibSpotify. However, it seems that I'm unable to use the libspotify dll from inside a Metro app, presumably because it uses parts of the win32 api that are off-limits to the Metro Sandbox.
Loading in my own simple test dll using LoadPackagedLibrary works ok, but loading in libspotify gives error 1114 - ERROR_DLL_INIT_FAILED.
Is there any hope for me?
Thanks
Tom
If you are trying to create a Metro-Style-App - you have no hope until Spotify releases an updated library or someone reverse engineers their library to make it work in WinRT.
If you want to create a Metro style app that is not WinRT - based - there are WPF libraries that let you theme your application to look Metro, but you won't be able to sell it in Windows Store unless you work for Spotify and get into a deal with Microsoft.
You can only use the WinRT library in Windows 8 Metro Apps, not Win32.

Can I use oauth 2.0 with flex?

I want my flex mobile app to connect to the Google services, specifically the new Google Drive, to upload and download files. Is this possible using AS3 and Flash Builder? I believe oauth 2.0 is required for authenication. Can this be done with Action Script? I've looked around and only found oauth v1 libraries. Also, are there any APIs working with Google Drive that works with Flash Builder?
Thanks
yes
Actionscript 3 library for oAuth client implementations, for use in Flash, Flex and AIR.
http://code.google.com/p/oauth-as3/
I don't know if you are still interested with the Google Drive API, but i've just released a (REALLY) beta version of that. You can check here: http://code.google.com/p/google-drive-as3-api-client/ .
See the example in Wiki section and refer to the full example (for Flex) that you can find here: http://code.google.com/p/google-drive-as3-api-client/source/browse/trunk/src/AS3GoogleDriveAPI.mxml
Bye