This repo contains reference applications for the Uber Direct JS SDK. You can download these examples locally and test them out to understand how the SDK works.
There are two folders of sample apps:
[vanilla-js](/vanilla-js/)
- Basic examples using the node
command[next.js](/next.js/)
- Web examples for Next.JSnpm install uber-direct
export UBER_DIRECT_CLIENT_ID=your_client_id
export UBER_DIRECT_CLIENT_SECRET=your_client_secret
export UBER_DIRECT_CUSTOMER_ID=your_customer_token