If you look on the DB forums, they have a workaround to add to the URL
to send the user to. You add a parameter, and it removes it for you

https://api.dropbox.com/1/connect?k=API_KEY_HERE&s=SECRET_HERE&dca=1

it's the dca=1 bit. they "added" this into the 1.2.2 beta api

also, if you want to use the app, not the website, you can send peopel
there with this:

dbapi-1://1/connect?k=API_KEY_HERE&s=SEE_BELOW

SEE_BELOW is a SHA1 hash of your secret key, I think. The code they use is this:

NSData *consumerSecret = <UTF8 encoded dump of the consumer secret>

    unsigned char md[CC_SHA1_DIGEST_LENGTH];

    CC_SHA1(consumerSecret.bytes, [consumerSecret length], md);

    NSUInteger sha_32 = htonl(((NSUInteger
*)md)[CC_SHA1_DIGEST_LENGTH/sizeof(NSUInteger) - 1]);

    NSString *secret = [NSString stringWithFormat:@"%x", sha_32];

//then use secret

I googled for sha1, found this:
http://scriptserver.mainframe8.com/sha1.php and it worked.

dont forget to make your app handle db-<APIKEY> so you get the URL
they redirect to :)

On Fri, May 4, 2012 at 2:42 PM, jamier1978 <[email protected]> wrote:
> OK thanks.
>
> We are using SharpBox and our App is currently waiting for review.  This
> whole dropbox rejection stuff has put a downer on things, so just looking at
> our options in case we get rejected.
>
> The oAuth login page that you get taken to on the iPad still has links for
> creating and account and to the homepage.
>
> Hopefully it all blows over in the next few days!
>
> Jamie
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Dropbox-API-the-official-one-tp4569048p4608652.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to