Skip to content
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

remove media_info filter; update authorize url #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The Sample App can be hosted locally, or on Heroku or some other hosting service
* App key -> Client ID
* App secret -> Client secret
* `https://api.dropboxapi.com/oauth2/token` -> Token URL
* `https://www.dropbox.com/oauth2/authorize` -> Authorization URL
* `https://www.dropbox.com/oauth2/authorize?token_access_type=offline` -> Authorization URL
5. Hit Save and copy the redirect URI in Hootsuite to Dropbox's redirect URI section.
6. Install your app by going to your [Hootsuite dashboard](https://hootsuite.com/dashboard) and opening up the Composer (Beta) at the top right. Open the Media Library by pressing the button near the upload area and install your app in the dropdown where `Free Images` is the current selection.
7. Log into your Dropbox account in the popup (You may need to enable popups on that page).
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ var getItemsWithFilter = (folderName = '', authHeader = '', query = '', mediaTyp
// filter for query
.filter(item => {
return item.name.toLowerCase().includes(query.toLowerCase());
})
// check if it has media_info
.filter(item => {
return item.media_info;
});

var promises = [];
Expand Down