Open zanpen2000 opened 2 years ago
now I can use unsplash-js like below:
const unsplashApi = createApi({ accessKey: xxxxxx, fetch: nodeFetch, }); var result = await unsplashApi.photos.getRandom({ orientation: 'portrait', query: 'tree', });
but when i need to upload a photo to my account, i need to use user-authentication, but how?
can anybody give me some code example, PLEASE?
thanks!
now I can use unsplash-js like below:
but when i need to upload a photo to my account, i need to use user-authentication, but how?
can anybody give me some code example, PLEASE?
thanks!