Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Get direct link from onedrive.com
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string sharingUrl = "https://1drv.ms/u/s!AkijuZglD51udjvlclZWSNf_2wo"; string base64Value = System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(sharingUrl)); string encodedUrl = "u!" + base64Value.TrimEnd('=').Replace('/','_').Replace('+','-'); string resultUrl = string.Format("https://api.onedrive.com/v1.0/shares/{0}/root/content", encodedUrl); Console.WriteLine(resultUrl); } } }
run
|
edit
|
history
|
help
0
BTC sell estimator
enum extension
sum 2
Recursive 3
Hello World Program
Encode URl C#
SHA Tester 2.0
BC150401319
Eliminate duplicates char in string either upper or lower case
Demonstration await Control returned to the Caller