-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
I followed the README, and my react-app returns me an error saying "OAuth is not a constructor":
code bellow
FlickrService.js:
import FlickrConfig from "configs/FlickrConfig";
import { createFlickr } from "flickr-sdk";
const { upload } = createFlickr(FlickrConfig);
const FlickrService = {};
FlickrService.post = async (file) => {
return upload(file, {
title: "Works on MY machine!",
});
};
export default FlickrService;
FlickrConfig.js:
const FlickrConfig = {
consumerKey: "xxxxxxxxxxxxxx",
consumerSecret: "xxxxxxxx",
oauthToken: "xxxxxxxxxx",
oauthTokenSecret: "xxxxxxxxxxxxxx"
export default FlickrConfig;
Metadata
Metadata
Assignees
Labels
No labels