You have already generated an api key for use in hubtools. If you would like to generate a new key (which automatically revokes old keys), please click 'generate key'. Otherwise, you can copy and paste the below key to your ~/.hubtools.conf file:
");
+ puts("
You have already generated an API key. If you would like to generate a new key (which revokes old keys), click 'Generate key'. To use your API key with Hubtools, copy and paste the below key to your ~/.hubtools.conf file. This is not necessary for URL use to bypass our CAPTCHA.
");
puts("
");
printf("%s\n", existingKey);
puts("
");
puts("
");
- puts("
Generate an api key
");
+ puts("
Generate an API key
");
}
else
{
puts("
To use the hubtools up command, click 'generate key'");
puts("
");
printf("
Now, create a file ~/.hubtools.conf and add the key: \n", existingKey != NULL ? "block" : "none");
puts("
");
puts("
");
}
- printf("
\nTo revoke any apiKeys associated with your account, click the revoke button: \n
\nTo revoke any API keys associated with your account, click the revoke button: \n
", existingKey != NULL ? "block" : "none");
// add the event handlers for clicking the generate/revoke buttons
jsInlineF(""
"document.getElementById('generateApiKey').addEventListener('click', generateApiKey);\n"
"document.getElementById('revokeApiKeys').addEventListener('click', revokeApiKeys);\n"
);
}
puts("
"); // tabSection apiKey
}
void hgHubConnectDeveloperMode()
/* Put up the controls for the "Hub Development" Tab, which includes a button to run the
* hubCheck utility on a hub and load a hub with the udcTimeout and measureTiming
* variables turned on */
{