Hello @Santhosh
I spelled wrongly in my last post and it’s corrected now could you check and give solution for that.
Hello @Santhosh
I spelled wrongly in my last post and it’s corrected now could you check and give solution for that.
can you please share with us the app zip, will lookinto what is wrong in the code
Thanks
seems like you have unauthorized access, have you passed the correct github api key?
yes if i hardcode my git hub api key it’s works
seems like the credentials which you have is wrong, please check the Iparams values
Thanks
will check and if i face any issue i will let you know thanks for your valuable time
Good morning @Santhosh
I feed correct github access token , repo name and user name in iparams but i get error **{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest\"}"**
If i hardcode github user name and repo name it’s working
In my installation page i put correct credential to github repository name and username in iparams
iparam.json
{
"api_key": {
"display_name": "api_key",
"description": "Please enter your api_key",
"type": "api_key",
"required": true,
"type_attributes": {
"product": "freshdesk"
},
"secure": true
},
"domain": {
"display_name": "domain",
"description": "Please enter your domain",
"type": "domain",
"required": true,
"type_attributes": {
"product": "freshdesk"
}
},
"git_user_name": {
"display_name": "GitHub User Name",
"description": "Please enter GitHub User Name",
"type": "text",
"required": true
},
"git_repo_name": {
"display_name": "GitHub Repo Name",
"description": "Please enter GitHub Repo Name",
"type": "text",
"required": true
},
"git_api_key": {
"display_name": "Github api_key",
"description": "Please enter your GitHub api_key",
"type": "text",
"required": true,
"secure": true
}
}
how to rectify this?
Thank you
@Kithiyon,
If you are not marked git_user_name
and git_repo_name
as secure Iparam, you are able to get it in the Frontend,
like, client.iparams.get().then((iparam) => console.log( iparam.git_user_name ) );
I hope you can use this instead of template literal in URL
Thanks
Thank you @Santhosh
as per documentation we cannot get secure iparam values in URL right. so I tried without secure iparam and used client.iparams.get().then((iparam) => console.log( iparam.git_user_name ) ); .I can get **git hub user name and repo name ** i append these iparams values into my URL. i get same error as i mentioned in last reply
This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.