-
Notifications
You must be signed in to change notification settings - Fork 2
Migrate all examples to Yoti AI Services API v1 #5
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: saurabh-yoti <108520161+saurabh-yoti@users.noreply.github.com>
Co-authored-by: saurabh-yoti <108520161+saurabh-yoti@users.noreply.github.com>
Co-authored-by: saurabh-yoti <108520161+saurabh-yoti@users.noreply.github.com>
Co-authored-by: saurabh-yoti <108520161+saurabh-yoti@users.noreply.github.com>
Co-authored-by: saurabh-yoti <108520161+saurabh-yoti@users.noreply.github.com>
Co-authored-by: saurabh-yoti <108520161+saurabh-yoti@users.noreply.github.com>
Co-authored-by: saurabh-yoti <108520161+saurabh-yoti@users.noreply.github.com>
|
The JSON payload was incorrectly structured across all examples:
instead of the correct structure:
The Go project was missing the The Java project had issues with accessing the image file and pem key from within the resources folder and issues with the @saurabh-yoti please review new commits - can remove the Go/Java commits if not best practice |
|
The example images return an error from the AI services API: |
Updates all language examples from the deprecated
/api/v1/age-verification/checksendpoint to the new/ai/v1API structure with configurable endpoint support (age,antispoofing,age-antispoofing).Changes
API Endpoint Migration
BASE_URL + /api/v1/age-verification/checkstoBASE_URL + /{ENDPOINT}ENDPOINTparameter (default:age-antispoofing) to all configuration filesBASE_URLfromhttps://api.yoti.comtohttps://api.yoti.com/ai/v1Before:
After:
Error Handling
Documentation
.gitignoreto exclude build artifacts (node_modules/,vendor/,target/,obj/, Go module cache)API Reference
https://api.yoti.com/ai/v1/age,/antispoofing,/age-antispoofingOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.