You need to sign in to do that
Don't have an account?
raju 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
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 Dev
you have url variable in single quote chage follwoing line
to
raju p 4
Thanks Sir,
Its working
raju 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