-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How Do I: get a private_key in the Create Application v2 API in nodejs SDK? #955
Comments
@s-lukashenka-micoworks The keys should be in the response after you call const newApplication = await vonage.applications.createApplication({
name: 'my-awesome-app',
})
console.log(newApplication.keys.privateKey)
console.log(newApplication.keys.private_key); LMK if you need any more assistance with this |
@manchuck I understand that the actual API returns that parameter, but the types in SDK do not have it: https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/applications/lib/types/Application.ts#L29. |
Ahh, I can see the issue if you're using TypeScript. |
@s-lukashenka-micoworks are you still experiencing this issue? |
Haven't heard back from @s-lukashenka-micoworks , If you are still having an issue, please re-open this issue |
How do I
If I am getting it right, a call to Create Account v2 API is supposed to return a private key alongside the public one, but in nodejs SDK it returns only the public one. Please, make it return the private key as well as that is important for application creation automation.
API/Product
Applications
Code Sample
API documentation pointing to its existence in the API response: https://developer.vonage.com/en/api/application.v2#createApplication-responses
The text was updated successfully, but these errors were encountered: