_requestLink

Requests another FieldMotion account to link with yours.

Parameters

The link code of the FieldMotion account you want to link to.

Example

FM_api('Outsourcing_requestLink', ['link_code' => '012345678']);

Result

On Success

{'ok':1}

On Failure

If the user is not logged in:

{'error':'not logged in'}

If no link code is supplied:

{'error':'no link_code supplied'}

If an incorrect link code is given:

{'error':'Incorrect code entered'}

If a link already exists and is enabled:

{'error':''That link already exists and is enabled'}

If a link already exists and is waiting to be accepted:

{'error':'That link is already pending acceptance'}

Last updated