---
# System prepended metadata

title: nferx_py generic function

---

# nferx_py generic function

#### Usage
```python
    nf.modify_defaults('server', 'janssen')
    nf.authenticate('user', 'secret')

    
    # For GET
    path = 'api/get_nearest?token=egfr'
    resp = nf.req(path)
    print(resp.json())
    

    # For POST
    path = 'semantics/v1/compute_signals'
    payload = {
    'token': 'egfr',
    'control': 'root-biomolecules',
    'corpus': 'corpus',
    'year': 'all'
    }
    resp = nf.req(path, method='POST', payload=payload)
    print(resp.json())
```