Generate Sec Key
Signature Class
To calculate your signature first import the necessary class:
1
from smile_id_core import Signature
Copied!
generate_sec_key method
1
from smile_id_core import Signature,ServerError
2
3
4
connection = Signature("<partner_id>", "<api_key>")
5
signatureObject = connection.generate_sec_key(timestamp) # where timestamp is optional
6
# In order to utilise the signature you can then use a json parser and extract the signature
Copied!
The response will be an object:
1
{
2
"sec_key": "<the generated sec key>",
3
"timestamp": "<timestamp that you passed in or that was generated>"
4
}
Copied!
Last modified 4mo ago
Copy link