initInterMine {InterMineR} | R Documentation

## Initialize the list containing the base URL and API token.

### Description

Initialize the InterMine list with the base URL of the webservice of the database and the API token.

Some resources such as lists are normally privately associated with the individual user that created them and require authentication for access. To access these private resources, each request needs to be authenticated, using an API key token. You can get an API token from the web-app of the service you intend to access: visit the MyMine tab after logging-in and click on API Key.

### Usage

    initInterMine(mine = listMines()["HumanMine"], token="")

### Arguments

`mine` | a string, representing the base URL of the webservice of the database.
`token` | a string, representing the API token in order to use private functions such as list and enrichment.

### Value

A list containing the base URL and API token.

### Author(s)

InterMine Team

### References

/urlhttp://intermine.readthedocs.io/en/latest/web-services/

### Examples

    im <- initInterMine(mine = listMines()["HumanMine"], "TOKEN") #replace TOKEN with your token

[Package InterMineR version 1.4.1 Index]