Issue Details (XML | Word | Printable)

Key: MDL-15350
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Dongsheng Cai
Reporter: Martin Dougiamas
Votes: 0
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-16543

Develop "boxnet" plugin for box.net

Created: 23/Jun/08 02:16 PM   Updated: 22/Jun/09 11:02 AM
Return to search
Component/s: Repository API
Affects Version/s: 2.0
Fix Version/s: 2.0

URL: http://docs.moodle.org/en/Development:Box.net_Repository_Plugin
Participants: Dongsheng Cai, Martin Dougiamas, Nadav Kavalerchik, Nicolas Martignoni and Penny Leach
Security Level: None
Resolved date: 04/Aug/08
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
Develop a sample plugin using box.net

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Dongsheng Cai added a comment - 18/Jul/08 04:11 PM
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'));

Penny Leach added a comment - 18/Jul/08 09:34 PM
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.


Penny Leach added a comment - 18/Jul/08 10:17 PM

Dongsheng Cai added a comment - 18/Jul/08 11:47 PM
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.


Nicolas Martignoni added a comment - 14/Aug/08 04:27 PM
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.


Dongsheng Cai added a comment - 14/Aug/08 05:18 PM
Sorry, Nicolas, you are right, I will move this language file to lang/en_utf8 very soon. Thanks for tell me

Nicolas Martignoni added a comment - 14/Aug/08 08:51 PM
NP, I thought it was intended for plugins. Glad to see that it's not the case

Nadav Kavalerchik added a comment - 17/May/09 03:37 AM
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.


Nadav Kavalerchik added a comment - 06/Jun/09 05:05 AM
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.

Dongsheng Cai added a comment - 08/Jun/09 02:30 PM
Hi, Nadav, I cannot reproduce your problem, I can login succeccfully

Dongsheng Cai added a comment - 22/Jun/09 11:02 AM
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.