Moodle

Develop "boxnet" plugin for box.net

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Repositories
  • Labels:
    None

Description

Develop a sample plugin using box.net

Issue Links

Activity

Hide
Dongsheng Cai added a comment -

To upload file:
$box = new boxclient('dmls97d8j3i9tn7av8y71m9eb55vrtj4');
$t = $box->getTicket();
$box->getAuthToken($t['ticket'], 'unoter@gmail.com', 'xxxxxxx');
$ret = $box->uploadFile(array('file'=>'/var/www/phpFlickr-2.2.0.tar.bz2'));

Show
Dongsheng Cai added a comment - To upload file: $box = new boxclient('dmls97d8j3i9tn7av8y71m9eb55vrtj4'); $t = $box->getTicket(); $box->getAuthToken($t['ticket'], 'unoter@gmail.com', 'xxxxxxx'); $ret = $box->uploadFile(array('file'=>'/var/www/phpFlickr-2.2.0.tar.bz2'));
Hide
Penny Leach added a comment -

Hi Dongsheng!

Can we put back setAuthToken? I am not using quite the same method as you to retrieve it and I would like to be able to set it manually.

Or I can just do $this->boxclient->auth_token = $foo I guess.

Show
Penny Leach added a comment - Hi Dongsheng! Can we put back setAuthToken? I am not using quite the same method as you to retrieve it and I would like to be able to set it manually. Or I can just do $this->boxclient->auth_token = $foo I guess.
Hide
Penny Leach added a comment -
Show
Penny Leach added a comment - Can you approve this patch for inclusion: http://git.catalyst.net.nz/gw?p=moodle-r2.git;a=commitdiff;h=8ef45543d42c2445bd8b710351bace58783d57f8
Hide
Dongsheng Cai added a comment -

Hi, Penny, there was a setAuthToken function there, but I removed it, because I didn't use it in repository API, if you need it, feel free to add it

I absolutely agree with your patch, just do it, thanks.

Show
Dongsheng Cai added a comment - Hi, Penny, there was a setAuthToken function there, but I removed it, because I didn't use it in repository API, if you need it, feel free to add it I absolutely agree with your patch, just do it, thanks.
Hide
Nicolas Martignoni added a comment -

Hi Dongsheng,

How are we (translators) supposed to commit the translation of the strings in repository_boxnet.php? (same applies for all repository plugins).

The strings of all "official" parts of Moodle used to be stored in the lang/en_utf8. With this change with the plugins, it could be more and more difficult to manage the translation.

Show
Nicolas Martignoni added a comment - Hi Dongsheng, How are we (translators) supposed to commit the translation of the strings in repository_boxnet.php? (same applies for all repository plugins). The strings of all "official" parts of Moodle used to be stored in the lang/en_utf8. With this change with the plugins, it could be more and more difficult to manage the translation.
Hide
Dongsheng Cai added a comment -

Sorry, Nicolas, you are right, I will move this language file to lang/en_utf8 very soon. Thanks for tell me

Show
Dongsheng Cai added a comment - Sorry, Nicolas, you are right, I will move this language file to lang/en_utf8 very soon. Thanks for tell me
Hide
Nicolas Martignoni added a comment -

NP, I thought it was intended for plugins. Glad to see that it's not the case

Show
Nicolas Martignoni added a comment - NP, I thought it was intended for plugins. Glad to see that it's not the case
Hide
Nadav Kavalerchik added a comment -

box.net changed their developer API website and registration process
please update the info page the administrator see when it requesting
to add a box.net API and presented a link to an old box.net developer site.

i started the new registration process with box.net to get a box.net "service"
i can talk to from within moodle. hope i got it right. it is not functional , yet.

Show
Nadav Kavalerchik added a comment - box.net changed their developer API website and registration process please update the info page the administrator see when it requesting to add a box.net API and presented a link to an old box.net developer site. i started the new registration process with box.net to get a box.net "service" i can talk to from within moodle. hope i got it right. it is not functional , yet.
Hide
Nadav Kavalerchik added a comment -

i am unable to login with my username and password
i get "invalid password" error
while i am connecting (login) successfully with the same username
and password onto the main box.net website.

Show
Nadav Kavalerchik added a comment - i am unable to login with my username and password i get "invalid password" error while i am connecting (login) successfully with the same username and password onto the main box.net website.
Hide
Dongsheng Cai added a comment -

Hi, Nadav, I cannot reproduce your problem, I can login succeccfully

Show
Dongsheng Cai added a comment - Hi, Nadav, I cannot reproduce your problem, I can login succeccfully
Hide
Dongsheng Cai added a comment -

Hi, Nadav, I met your problem yesterday, the I found out that was boxnet's problem, the login web service is not available, so it returned invalid account.

Show
Dongsheng Cai added a comment - Hi, Nadav, I met your problem yesterday, the I found out that was boxnet's problem, the login web service is not available, so it returned invalid account.

People

Dates

  • Created:
    Updated:
    Resolved: