Hi

I am Integrating Flex Mobile Application with a Sales Force CRM , using
OAuth, and this is my code


But when I run the Code I get the following Error :

Error #2044: Unhandled error:. text=Load error. is the full error


Can someone help me on this

  private var _key:Your API KEY;
  02private var _redirectURL:YOUR URL;
  03
  04 var requestURL:String = "
https://login.salesforce.com/oauth2/authenticate?client_id=<https://foursquare.com/oauth2/authenticate?client_id=>
"+_key+"&response_type=token&display=touch&redirect_uri="+ redirectURL;
  05 var webView:StageWebView = new StageWebView();
  06     webView.loadURL(requestURL);
  07     webView.addEventListener(Event.COMPLETE,onOAuthLoginComplete,false,
0,true);
  08
  09
  10private function onOAuthLoginComplete(evt:Event):void
  11            {
  12                    webView.stage = this.stage;
  13                    webView.viewPort = new Rectangle(0,0,
stage.stageWidth, stage.stageHeight);
  14                    trace("webView.location = " + webView.location);
  15                    _token =
webView.location.substring(webView.location.indexOf("=")+1,
webView.location.length);
  16                    trace("_token = " + _token);
  17            }
  18
  19public function ProfileInformation():void
  20        {
  21            var request:URLRequest = new URLRequest("
https://api.loginsalesforce.com/v2/ <https://api.foursquare.com/v2/>"+
"users/self?oauth_token="+_token);
  22                request.method = URLRequestMethod.GET;
  23            _urlLoader.load(request);
  24        }




-- 
Regards,
Prasanth

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to