Fetches the Vehicle attached to a User.

Parameters

userid

The ID of the User.

Example

FM_api('Vehicle_getByUserId', ['userid' => '123']);

Result

On Success

The ID of the Vehicle attached to the User. For example:

{'vehicle_id':'22fea29c9ee8f58daf60cc24cfc5d835'}

On Failure

If the user is not logged in:

{'error':'not logged in'}