• sanjayssn
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi,

 

I am new to OAuth and cloud development. I am trying to access my salesforce data using a web application. I am following the instruction from this link.

 

http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_REST_API

 

I am receiving an access token from salesforce, once i authorize the application to access my account. But when i use the access token to query data from my slesforce account, i get a HTTP 403 - forbiddden response. Am i missing something ? What are the alternate ways that can be used if not REST API ?

 

this is the URL i use to access my account via REST API.

 

https://ap1.salesforce.com/services/data/v20.0/query

My query parameter is this

params[0] = new NameValuePair("q",
                "SELECT Name, Id from Account LIMIT 100");
        get.setQueryString(params);

 

Thanks in advance.

Sanjay

 

Hi,

 

I am new to OAuth and cloud development. I am trying to access my salesforce data using a web application. I am following the instruction from this link.

 

http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_REST_API

 

I am receiving an access token from salesforce, once i authorize the application to access my account. But when i use the access token to query data from my slesforce account, i get a HTTP 403 - forbiddden response. Am i missing something ? What are the alternate ways that can be used if not REST API ?

 

this is the URL i use to access my account via REST API.

 

https://ap1.salesforce.com/services/data/v20.0/query

My query parameter is this

params[0] = new NameValuePair("q",
                "SELECT Name, Id from Account LIMIT 100");
        get.setQueryString(params);

 

Thanks in advance.

Sanjay