module function · N/https

createSecretKey()

https.createSecretKey(options)

Creates a key for the contents of a credential field.

Implementation
Not started
Design
Open for proposals suggest how it should read
Proposals
A
Signature
https.createSecretKey(options)
Module
N/https
Returns
Object
Governance
None
Script types
Server scripts
Version
SuiteScript 2.x, documented for 2.1; since NetSuite 2015.2
call shapefrom Oracle's parameter table
1https.createSecretKey({2    guid:     /* string */,3    secret:   /* string */,4    encoding: /* https.Encoding, optional */5});
Oracle reference for this method
ParameterTypeRequiredDescription
options.guidstringA GUID used to generate a secret key. Use Form.addCredentialField(options) to generate a GUID. This parameter is not required if you use the secret parameter. You cannot use both the options.guid parameter and secret parameter in combination. The GUID can resolve to either data or metadata.
options.secretstringThe script ID of the secret used for authentication. You can store secrets at Setup > Company > API Secrets. For more information, see Secrets Management . This parameter is not required if you use the options.guid parameter. You cannot use both the options.guid parameter and secret parameter in combination.
options.encodinghttps.EncodingoptionalSpecifies the encoding for the Secret Key.
B

No Mynt syntax yet.

Nothing in the language compiles to https.createSecretKey(options) today. How should it read?

C

Competing syntax for createSecretKey, from GitHub Discussions. Select two or more to compare them side by side.

All discussions

Loading proposals from GitHub…

D

Write the Mynt you wish you could write.

A good proposal shows the syntax, the SuiteScript it should become, and argues for it: why it is clearer, how it fits the rest of the language, what it makes harder.

  • Clarity. Does it say what happens, without ceremony?
  • Consistency. Does it read like load, save and Ref[field]?
  • Expressiveness. Does it cover the cases people actually write?
  • Honesty. Does it hide a NetSuite cost, such as governance, that a reader should see?

N/https · https.createSecretKey(options)

Suggest syntax for createSecretKey