7. API Calls - RealDeviceMap/RealDeviceMap GitHub Wiki

For using the new API-calls you need to add an RDM user to a group with admin rights. Replace ${name} placeholder with right value.

  • /api/set_data?reload_instances=true
  • /api/set_data?clear_memcache=true
  • /api/set_data?assign_device=true&device_name=${name}&instance=${name}
  • /api/set_data?assign_devicegroup=true&devicegroup_name=${name}&instance=${name}

Quests

  • /api/set_data?clear_all_quests=true
  • /api/set_data?assignmentgroup_re_quest=true&assignmentgroup_name=${name}
  • /api/set_data?assignmentgroup_start=true&assignmentgroup_name=${name}

Worker Scan-Next API

coords can be an json array of coord objects with keys lat & lon provided. It has to be an instance of type Circle (Smart) Pokemon or Pokemon IV.

  • api/set_data?scan_next=true&instance=${name}&coords='[{"lat":40.0,"lon":10.0}, ...]'
  • api/get_data?scan_next=true&queue_size=true&instance=${name}

Example

curl -v -g -X GET "https://map.url/api/set_data" -d scan_next=true -d instance='Downtown City' -d coords='[{"lat":40.0,"lon":10.0}]' -H 'Content-Type:application/x-www-form-urlencoded' -H 'Accept:application/json' -u 'username:password'