Swift 4 api call example