Just to say that I finally managed to finish the extension for Dropbox. (Just 200 lines of code, but I had to modify OAuth2OOo and CloudUcpOOO also)
https://github.com/prrvchr/DropboxOOo/r ... boxOOo.oxt
I remind you that you must first install the two extensions OAuth2OOo and CloudUcpOOo.
It is functional under Linux, but I still have malfunctions under Windows that I have trouble adjusting (lack of time and especially Windows computer)
The excellent API Python Request is now accessible from Basic, normally (I have not tested yet) since I can now compile the IDL files, here is the copy describing the available interfaces:
Code: Select all
#ifndef __com_sun_star_auth_XOAuth2Service_idl__
#define __com_sun_star_auth_XOAuth2Service_idl__
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/auth/RestRequestParameter.idl>
#include <com/sun/star/auth/XRestKeyMap.idl>
#include <com/sun/star/beans/Optional.idl>
#include <com/sun/star/io/XInputStream.idl>
#include <com/sun/star/io/XOutputStream.idl>
#include <com/sun/star/container/XEnumeration.idl>
#include <com/sun/star/sdbc/XConnection.idl>
module com { module sun { module star { module auth {
interface XOAuth2Service: com::sun::star::uno::XInterface
{
void initializeSession([in] string ResourceUrl);
boolean initializeUser([in] string UserName);
short getSessionMode([in] string Host);
string getToken([in] string Format);
::com::sun::star::beans::Optional<::com::sun::star::auth::XRestKeyMap> execute([in] RestRequestParameter Parameter);
::com::sun::star::container::XEnumeration getEnumerator([in] RestRequestParameter Parameter);
::com::sun::star::io::XInputStream getInputStream([in] RestRequestParameter Parameter,
[in] long Chunk,
[in] long Buffer);
::com::sun::star::uno::XInterface getUploader([in] ::com::sun::star::sdbc::XConnection Connection,
[in] ::com::sun::star::uno::XInterface Provider);
[attribute, readonly] ::com::sun::star::uno::XInterface Setting;
[attribute, readonly] ::com::sun::star::uno::XInterface Session;
[attribute] string ResourceUrl;
[attribute] string UserName;
[attribute] string Error;
};
}; }; }; };
#endif
I had as a project to make a version for ICloud, it will not be possible, Apple using only proprietary solutions, own SDK, no OAuth2 ... (amazing no), too bad.
For the Linuxiens, good test for the Windoziens unless you are brave, it will have to wait a little longer.
Good test ...