function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cha runcha run 

Blackberry Redirect URL

Hi,

 

 

I am trying to integrate Salesforce.com to Blackberry through REST API.

 

A bit confused with Callback URL.

 

When I assign callback URL to https://localhost/resttest/ and in Blackberry code to https://localhost/resttest/

 

I am getting login screen from Salesforce and when I click on approve, I am not redirected to the resttest folder on my local host.

 

When I paste the same in the browser of blackberry with my IP address in place of localhost, it's working fine.

I am getting the html file placed in the resttest folder.

 

When I use the same URL with IP address in the callback url instead of localhost, and debug my blackberry code. I am with an error stating that bad url request.

 

I tried well with Encoding the URL also, but invain.

 

 

Help me out at earliest.

 

 

 

 

Cheers!!

Charan

Pat PattersonPat Patterson

Hi Cha Run,

 

Check out this article on building Android apps with the REST API - most of the OAuth stuff should be similar for BlackBerry.

 

http://wiki.developerforce.com/index.php/Building_Android_Applications_with_the_Force.com_REST_API

 

I don't think you can use localhost in your redirect URI, since there is no web app running on the BlackBerry. You should use a real server name if you are using the web server OAuth flow. If you are trying to use user agent flow, you might be able to use a custom scheme.


See this article for much more on OAuth:

 

http://wiki.developerforce.com/index.php/Digging_Deeper_into_OAuth_2.0_at_Salesforce.com

 

Cheers,

 

Pat