Request information from plugin

I am trying to create a reporting tool and need to get an API token from a plugin in Jira. Can I use requestJira function even though it is not a rest API call but instead just a link to the location? If not what do I need to do instead?