M
Michael Boutros
Hello all! I am creating an API library for Pownce in Ruby. It's hard
because there is no documentation whatsoever, only the hard work done by
those working on Python and ColdFusion versions. It is a pretty long
file, so I've put it up on pastie (http://pastie.caboo.se/84428). The
server check and
login are working great and I'm sucessfully getting a token etc., but my
problem comes starting with view_notes. The API must create a WSSE token
to be sent along under the name 'auth'. I am creating my WSSE header in
generate_wsse, and from all I can see it looks right. But, instead of my
response's body being the notes, it's the following error with a 401
error:
Now, I don't know if this means that it's unable to parse the header
because it didn't get sent, or it's invalid, or whatever else there may
be. And so I appeal to you Ruby-ists, hoping that someone else has had
this issue!
Thanks,
Michael Boutros
because there is no documentation whatsoever, only the hard work done by
those working on Python and ColdFusion versions. It is a pretty long
file, so I've put it up on pastie (http://pastie.caboo.se/84428). The
server check and
login are working great and I'm sucessfully getting a token etc., but my
problem comes starting with view_notes. The API must create a WSSE token
to be sent along under the name 'auth'. I am creating my WSSE header in
generate_wsse, and from all I can see it looks right. But, instead of my
response's body being the notes, it's the following error with a 401
error:
Code:
Unable to parse WSSE header: expected string or buffer
because it didn't get sent, or it's invalid, or whatever else there may
be. And so I appeal to you Ruby-ists, hoping that someone else has had
this issue!
Thanks,
Michael Boutros