-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67f91df
commit 003df15
Showing
41 changed files
with
1,468 additions
and
1,830 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
using MoodleApi; | ||
|
||
var moodle = new Moodle("https://www.moodle.org/"); | ||
var authentiactionResult = await moodle.Login("mr.aminsafaei", "123456"); | ||
var authentiactionResult = await moodle.Login("aminsafaei.info", "123456"); | ||
if (authentiactionResult.Succeeded) | ||
{ | ||
var siteInfo = await moodle.GetSiteInfo(); | ||
|
||
Console.WriteLine($"Site Name: {siteInfo.Data.SiteName}"); | ||
} | ||
|
||
Console.WriteLine("Hello, World!"); | ||
Console.ReadLine(); |
Oops, something went wrong.