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
raju p 4raju p 4 

URL No Longer Exists when i am integration with BoxModel i am geting This error

Hi Developers,
when i am submit the button  ia m geting This error
<apex:page controller="BoXIntegration" >
<apex:form >
<apex:pageBlock >
<apex:pageBlockButtons location="Top">
<apex:commandButton value="Code" action="{!getCode}"/>
</apex:pageBlockButtons>
<apex:inputtext value="{!ClientId}" size="40"/><br/> 
URL:<apex:outputLabel value="{!uri}"/>
</apex:pageBlock>
</apex:form>
</apex:page>
>>>>>>>>>>>>>
public class BoXIntegration {
    public string ClientId{set;get;}
    public string ClientScr{set;get;}
    public string uri{set;get;}
    public string Acstoken{set;get;}
    public  BoXIntegration(){
      uri='https://c.ap4.visual.force.com/apex/BoxResponse';
    }
    public pageReference getCode(){
   string url='https://account.box.com/api/oauth2/authorize';
        url='url+esponse_type=code&client_id='+ClientId+'&redirect_uri='+uri+'&state=Raju';
        pageReference p= new pageReference(url);
         return p;
    } 
}
 and added url added in remotesite seting
Ashish DevAshish Dev
you have url variable in single quote chage follwoing line 
url='url+esponse_type=code&client_id='+ClientId+'&redirect_uri='+uri+'&state=Raju';
to
url=url+'esponse_type=code&client_id='+ClientId+'&redirect_uri='+uri+'&state=Raju';


 
raju p 4raju p 4
Thanks Sir, Its working
raju p 4raju p 4
i am not getting Acesstoken after geting code, i iam entered client id,clientscreet,and code, i am not getting access token plaese let me know clearly .some where i am doing wrong