sign oauth request

szabo bogdan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 25 10:28:55 PDT 2014


On Thursday, 25 September 2014 at 17:09:40 UTC, Adam D. Ruppe 
wrote:
> On Thursday, 25 September 2014 at 17:03:43 UTC, John Chapman 
> wrote:
>> http://dlang.org/phobos/std_digest_sha.html#SHA1
>
> Not quite the same, the oauth requires hmac.
>
> When I did this in my oauth.d for twitter and stuff, I used the 
> C library "mhash"
>
> check out my code:
>
> https://github.com/adamdruppe/arsd/blob/master/oauth.d#L796
>
> The rest of that lib is kinda sloppy and has a few dependencies 
> from my other modules but feel free to use whatever looks 
> useful to you.
>
> I think mhash is GPL licensed.


it works! thanks!


More information about the Digitalmars-d-learn mailing list