This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
def create_onedrive_directdownload (onedrive_link): | |
data_bytes64 = base64.b64encode(bytes(onedrive_link, 'utf-8')) | |
data_bytes64_String = data_bytes64.decode('utf-8').replace('/','_').replace('+','-').rstrip("=") | |
resultUrl = f"https://api.onedrive.com/v1.0/shares/u!{data_bytes64_String}/root/content" | |
return resultUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
import morepath | |
import os | |
from webob import static | |
class App(morepath.App): | |
@property |