Start of code to authorise against trello api