Answer the question
In order to leave comments, you need to log in
Where can I get APP_ID?
Hello!
I'm trying to make a rest-only application for the marketplace according to this documentation:
https://dev.1c-bitrix.ru/learning/cour....9279.9281
I
created an application, but I don't see a word about APP_ID and APP_SECRET there. Where can I get them?
there is not a word about them in the arriving ONAPPINSTALL event either.
Answer the question
In order to leave comments, you need to log in
class AutoRun
{
const string name = "MyTestApplication";
public static bool SetAutorunValue(bool autorun)
{
string ExePath = System.Reflection.Assembly.GetExecutingAssembly().Location;
RegistryKey reg;
reg = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Run\\",true); // мы не создаем, а открываем и указываем что будем записывать
try
{
if (autorun)
reg.SetValue(name, ExePath);
else
reg.DeleteValue(name);
reg.Close();
}
catch
{
return false;
}
return true;
}
}
B24 -> Applications -> My applications -> Add application
After saving, the Application Code (APP_ID) and Application Key (APP_SECRET) will appear
Read here or
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question