Search the web
Sign In
New User? Sign Up
brightcove-dev · NEW BC Forums: http://tinyurl.com/7zrqce
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Trying to delete videos - I'm getting: "error": "UNKNOWN_METHOD   Message List  
Reply | Forward Message #4107 of 4279 |
RE: [brightcove-dev] Re: Trying to delete videos - I'm getting: "error": "UNKNOWN_METHOD","code":301

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@yahoogroups.com [mailto:brightcove-dev@yahoogroups.com] On Behalf Of Brian Deitte
Sent: Tuesday, January 06, 2009 2:56 PM
To: brightcove-dev@yahoogroups.com
Subject: RE: [brightcove-dev] Re: Trying to delete videos - I'm getting: "error": "UNKNOWN_METHOD","code":301

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@yahoogroups.com [mailto:brightcove-dev@yahoogroups.com] On Behalf Of Joel Fiser
Sent: Wednesday, December 31, 2008 12:59 PM
To: brightcove-dev@yahoogroups.com
Subject: [brightcove-dev] Re: Trying to delete videos - I'm getting: "error": "UNKNOWN_METHOD","code":301

OK - I wasn't using POST before - but now I am.
Here's the func:

private function delClip(myClipObj:Object){
    var loader:URLLoader;
    var url:String = "http://api.brightcove.com/services/post"
    var myRequest:URLRequest = new URLRequest(url);
   
    var myVars:URLVariables = new URLVariables();
     myVars.command = "delete_video";
    myVars.video_id = myClipObj.id;
    myVars.cascade = 1;
    myVars.token = "myValidSecretToken";
    myRequest.data = myVars;
    myRequest.method = URLRequestMethod.POST;
   
    try {      &nbs p ;    
        navigateToURL(myRequest); // I also tried sendToUrl and using a Loader
    }
    catch (err:Error) {
        view.displayTxt("dumpTxt", err.message, null);
    }
}


Now I get the following error message:

{"error": {"name":"MissingJSONError","message":"Could not find JSON-RPC.","code":211}, "result": null, "id": null}



--- In brightcove-dev@yahoogroups.com, "Joel Fiser" <jfiser42@...> wrote:
>
> Here's the string I'm pasting directly into the browser. Of course I
> don't include my actual token below.
>
> http://api.brightcove.com/services/library?command=delete_video&video_id=16927323&cascade=true&token=myValidSecretToken
>



Tue Jan 6, 2009 8:26 pm

bdeitte
Online Now Online Now
Send Email Send Email

Forward
Message #4107 of 4279 |
Expand Messages Author Sort by Date

Here's the string I'm pasting directly into the browser. Of course I don't include my actual token below. ...
Joel Fiser
jfiser42
Offline Send Email
Dec 30, 2008
7:16 pm

OK - I wasn't using POST before - but now I am. Here's the func: private function delClip(myClipObj:Object){ var loader:URLLoader; var url:String =...
Joel Fiser
jfiser42
Offline Send Email
Dec 31, 2008
5:59 pm

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...
Brian Deitte
bdeitte
Online Now Send Email
Jan 6, 2009
7:56 pm

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" :...
Brian Deitte
bdeitte
Online Now Send Email
Jan 6, 2009
8:27 pm

Is this documented at all? Can you please provide a man page or a real example that works using AS3? ... [mailto:brightcove-dev@yahoogroups.com] On Behalf Of...
Joel Fiser
jfiser42
Offline Send Email
Jan 12, 2009
7:48 pm

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. ...
Joel Fiser
jfiser42
Offline Send Email
Jan 12, 2009
8:56 pm

Is there some place else I can get support? It doesn't seem to be happening here anymore. ... course I ... ...
Joel Fiser
jfiser42
Offline Send Email
Jan 16, 2009
8:10 pm

There is a different token for the write API. You'll have to get that one from support. That way you can give your read API token out and not have to worry...
talksrealfast
Offline Send Email
Jan 16, 2009
8:12 pm

Yes there is a specific toke or each operation (read / write). You need to request a write token....
Dan Bush
daniel_bush
Offline Send Email
Jan 16, 2009
8:36 pm

Hi Many of the Brightcove product team are active on the new Brightcove forums. There are publisher and developer forums available here:...
Eric Anderson
eric_david_a...
Offline Send Email
Jan 16, 2009
9:00 pm

If this is not the correct place to ask this question - where should I pose it? ... http://api.brightcove.com/services/library?command=delete_video&video_id\...
Joel Fiser
jfiser42
Offline Send Email
Jan 7, 2009
3:54 pm

Joel, I posted two responses to this question yesterday. ________________________________ From: brightcove-dev@yahoogroups.com...
Brian Deitte
bdeitte
Online Now Send Email
Jan 7, 2009
5:17 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help