cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: i have problem with dropbox chooser, can someone help me

i have problem with dropbox chooser, can someone help me

amonsot890
Explorer | Level 4

everytime i get this error 

{"error": "Invalid app_key"}

how can i fix this ? i am using angular JS in my client side here is my code.

scripts,

<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropbox" data-app-key="vw2oz6a61zahabi"></script>

 html

<a ng-click="attachFromDropBox();hideUploadAttach();" style="cursor:pointer !important;">
<md-button aria-label="Dropbox" class="md-fab btn3x_attach md-mini" title="Dropbox">
<md-tooltip md-direction="top" md-autohide="true">
Dropbox
</md-tooltip>
</md-button>
</a>

please help me with this.. 

3 Replies 3

amonsot890
Explorer | Level 4

plus i get this link with undefiend app_key all the time..:slight_frown::slight_frown:

 

https://www.dropbox.com/chooser?origin=http%3A%2F%2Flocalhost%3A3000&app_key=undefined&link_type=&trigger=js&multiselect=false&extensions=&folderselect=false&iframe=false&version=2

Mark
Super User II

*moves to API*


 


:penguin::penguin: - :penguin: - :penguin: - :penguin:


Heart Did this post help you? If so please mark it for some Kudos below. 


:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.


:arrows_counterclockwise: Did this post not resolve your issue? If so please give us some more information so we can try and help - please remember we cannot see over your shoulder so be as descriptive as possible! 


 

Greg-DB
Dropbox Staff
The "id" for the script should be "dropboxjs", not "dropbox". Please try that out and let me know if that doesn't fix it for you.
Need more support?