Did you ever get this working? I'm figuring it out as well and when using the admin API, I always receive a 401 unauthorized...