This commit is contained in:
@@ -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; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// *************************************************************************************************************
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user