opauth/elance

Opauth 的 Elance 策略

1.0 2014-04-13 18:47 UTC

This package is not auto-updated.

Last update: 2024-09-14 15:32:19 UTC


README

Elance 认证使用的 Opauth 1.0 策略。

基于 https://www.elance.com/q/api2/getting-started 实现

入门

  1. 安装 Opauth-Elance

    cd path/to/app/root
    composer require opauth/elance:~1.0
  2. https://www.elance.com/q/api/request-key 请求 Elance API 密钥

  3. 使用至少 Client IDClient Secret 配置 Opauth-Elance 策略。

  4. 将用户直接引导到 http://path_to_opauth/elance 进行认证

策略配置

必需参数

<?php
'Elance' => array(
	'client_id' => 'YOUR CLIENT ID',
	'client_secret' => 'YOUR CLIENT SECRET'
)

目前,scope 参数的有效值仅为 basicInfo

有关完整的 Elance API 文档和支持,请参阅 Elance API 指南

许可证

Opauth-Elance 是 MIT 许可的版权所有 © 2014 Opauth (https://opauth.org)