Creates hub and spoke diagrams with lines drawn from points on the Spoke Point layer to matching points in the Hub Point layer. Determination of which hub goes with each point is based on a match between the Hub ID field on the hub points and the Spoke ID field on the spoke points.
processing.runalg('qgis:hublines', hubs, hub_field, spokes, spoke_field, output)