Hi
Many of the Brightcove product team are
active on the new Brightcove forums. There are publisher and developer
forums available here: http://community.brightcove.com/brgh/.
Eric
From:
brightcove-dev@yahoogroups.com [mailto:brightcove-dev@yahoogroups.com] On Behalf Of Dan Bush
Sent: Friday, January 16, 2009
3:36 PM
To: brightcove-dev@yahoogroups.com
Subject: Re: [brightcove-dev]
Hello - is anybody there? Can someone please answer this question?
Yes there
is a specific toke or each operation (read / write). You
need to request a write token.
On Fri, Jan 16, 2009 at 3:10 PM, Joel Fiser <jfiser42@gmail.
> Is there some place else I can get support? It doesn't seem to be
> happening here anymore.
>
> --- In brightcove-dev@
>>
>> Now I'm getting the following msg:
>>
>> "InvalidTokenError"
>>
>> Do I need a different token to use the write API?
>> This token has been working fine with the read API.
>>
>>
>>
>> --- In brightcove-dev@
>> >
>> > Is this documented at all? Can you please provide a man page or a
real
>> > example that works using AS3?
>> >
>> >
>> > --- In brightcove-dev@
>> > >
>> > > Here's some more info on this.
>> > >
>> > > I don't know if AS has a built-in way to do JSON-RPC or not,
but
>> > basically the post body needs to look like this:
>> > > {"method" : "delete_video"
>> > > "params" : {"token" :
"myValidSecretToken
>> > > "video_id" : 17035,
>> > > "cascade" : true}}
>> > >
>> > >
>> > > ____________
>> > > From: brightcove-dev@
>> > [mailto:brightcove-dev@
>> > > Sent: Tuesday, January 06, 2009 2:56 PM
>> > > To: brightcove-dev@
>> > > Subject: RE: [brightcove-
>> > getting: "error": "UNKNOWN_METHOD"
>> > >
>> > >
>> > > Hi Joel, I asked someone else here about it, and this was
the
>> response:
>> > >
>> > > The error they are getting is because they are passing each
>> > parameter seperatly. I think it would work if they only pass one
url
>> > variable named json with the json-rpc object as the value.
>> > >
>> > > ____________
>> > > From: brightcove-dev@
>> > [mailto:brightcove-dev@
>> > > Sent: Wednesday, December 31, 2008 12:59 PM
>> > > To: brightcove-dev@
>> > > Subject: [brightcove-
>> > "error": "UNKNOWN_METHOD"
>> > >
>> > >
>> > > OK - I wasn't using POST before - but now I am.
>> > > Here's the func:
>> > >
>> > > private function delClip(myClipObj:
>> > > var loader:URLLoader;
>> > > var url:String = "http://api.brightco
>> > > var myRequest:URLReques
>> > >
>> > > var myVars:URLVariables = new URLVariables(
>> > > myVars.command = "delete_video"
>> > > myVars.video_
>> > > myVars.cascade = 1;
>> > > myVars.token = "myValidSecretToken
>> > > myRequest.data = myVars;
>> > > myRequest.method = URLRequestMethod.
>> > >
>> > > try { &nbs p ;
>> > > navigateToURL(
>> > using a Loader
>> > > }
>> > > catch (err:Error) {
>> > > view.displayTxt(
>> > > }
>> > > }
>> > >
>> > >
>> > > Now I get the following error message:
>> > >
>> > > {"error": {"name":"MissingJSO
>> > JSON-RPC.","
>> > >
>> > >
>> > >
>> > > --- In brightcove-dev@
> wrote:
>> > > >
>> > > > Here's the string I'm pasting directly into the
browser. Of
> course I
>> > > > don't include my actual token below.
>> > > >
>> > > >
>> >
>>
> http://api.brightco
>> > > >
>> > >
>> >
>>
>
>