ner0tic/foursquare-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ner0tic/foursquare-api

Composer 安装命令:

composer require ner0tic/foursquare-api

包简介

Foursquare API v2 client

README 文档

README

ORM agnostic php library to access foursquare api version 2.0

Installation

Add to composer

    "require": {
        "ner0tic/php-api-core":     "2.*",
        "ner0tic/foursquare-api":   "2.*"
        // ...

Usage

$fs = new \Foursquare\Client();

$checkins = $fs->api('checkins')->recent(); // recent($id,max=10)
foreach($checkins as $checkin) {
  echo $checkin; // $checkin->timestamp.' '.$checkin->getVenue()->getName()
}

Api's to choose from:

  • users
  • checkins
  • venues
  • venue groups
  • tips
  • lists
  • updates
  • photos
  • settings
  • specials
  • campaigns
  • events
  • pages
  • page updates
  • multi

To set the auth settings manually

$fs = new \Foursquare\Client();

$fs->setAuthClientId($id);
$fs->setAuthHttpPassword($pass);
$fs->setAuthUrlToken($token);
$fs->setAuthHttpToken($token);

If you have api keys to use, mash them into a pem file and set the certificate option to the path of the file.

$client->setOption('certificate', $pem_file);

Make a query

$result = $api->get($endpoint, $parameters, $request_options);

ToDo

Laundry List

  • DI to access config.yml for variables

统计信息

  • 总下载量: 59
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-09-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固