This commit is contained in:
2019-09-20 20:48:30 +00:00
parent 234f0a7dbc
commit a396bfed80

View File

@@ -68,17 +68,12 @@ If it gets a response that the token needs to be refreshed, it either hands this
If the access token expires after 100 days or so then they repeat this process (automatically by QBOI) If the access token expires after 100 days or so then they repeat this process (automatically by QBOI)
*/ */
// POST: api/Todo // POST: api/Todo
[HttpPost] [HttpPost]
public async Task<ActionResult<QItem>> Post(QCreds creds) public async Task<ActionResult<QItem>> Post(QCreds creds)
{ {
var q = new QItem(); var q = new QItem();
q.Token1 = "Test token 1"; q.Token1 = "Test token 1";
q.Token2 = System.DateTime.Now.ToString(); q.Token2 = System.DateTime.Now.ToString();
@@ -89,13 +84,14 @@ If the access token expires after 100 days or so then they repeat this process (
public class QCreds public class QCreds
{ {
public string Login { get; set; } public string Login { get; set; }
public string Password { get; set; } public string Password { get; set; }
} }
// *************************************************************************************************************
} }
} }