此操作将删除页面 "API key as object.",请三思而后行。
When API key had been in the database, it is stored as string. But when it is processing, then it is representing as object. API key as object is instance of cx_apikey.apikey. That is read only object, with all properties of the API key, that mean:
You can just convert it to string or use one from content or key property.
apikey = cx_apikey.apikey_generator("test").set_size(64).generate()
second_apikey = cx_apikey.apikey_generator("test").set_size(64).generate()
as_string = str(apikey)
as_string = apikey.content
as_string = apikey.key
You can just compare it as string, but when it is apikey object, also just use compare function.
result = apikey.compare(second_apikey)
result = apikey == second_apikey # Compare with __eq__ function
result = str(apikey) == str(second_apikey)
此操作将删除页面 "API key as object.",请三思而后行。