mhndev/location-service-client

0.1.0 2017-10-18 11:22 UTC

This package is auto-updated.

Last update: 2024-10-06 09:31:49 UTC


README

Sample code

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);


require 'vendor/autoload.php';

$client = new \mhndev\locationClient\Client(
    'http://127.0.0.1',
    8065,
    'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2NjBhZmU5Mzk1MmE5M2U3NTU5NjAyNmQyNWY1Y2UzNDBiNTY2YTBkMmNhMjBhMGY2NjI1NWU0MmRkNjg3MTJmNWQ2NWFjNTY0MTAyMGNhIn0.eyJhdWQiOiJkaWdpcGV5a19zcnYjeTEyZElxcTQ1b2VXRTRTQlVxOGI0ZStkdnhDdUJvS0RRR3dxdThzOGt4ST0iLCJqdGkiOiI2NjYwYWZlOTM5NTJhOTNlNzU1OTYwMjZkMjVmNWNlMzQwYjU2NmEwZDJjYTIwYTBmNjYyNTVlNDJkZDY4NzEyZjVkNjVhYzU2NDEwMjBjYSIsImlhdCI6MTUwMTM0NzkxNSwibmJmIjoxNTAxMzQ3OTE1LCJleHAiOjE1MDE0MzQzMTUsInN1YiI6IiIsInNjb3BlcyI6WyIqIl19.aO43JXuemctOEzMfMBjeCZnXLlitHueke5-d-ysymSW6RVpiAFcRnhCAuBRoZjYRqGyX_9sEfL35OwIZNj1WGUlSEGrHlV322kbbSgFfWC_BjyWzK5N3ytDWZvS77B5hUrWcIH2efyKwmamPcjZIB_ufW0GplIz5xx9sRT6CnH9Kr408odhLGZwO4qIuwCkDGHaxxeCxzfak3bHT2yZtcVM8J9jqyS_LrR2utaa_JBTEKpBbXp34pFrljYrZi5h-mhvzzsIOa5anwA1Lj7J3qLQiQNJ9oB154z6NT02c32dL4G-aOmQJei8josfKc4RCAS4ctO4ImgcEWZC8ZG0XDfL5pCisC1h_rar_qxJQ8xgprf_DElsBT__Y5OzNkOXNJrANBjqMyoFZ-siRcOS7w2WIKkYtJZp9bw5DdpFhd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