IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Callback
  • Code
  • Event
  • Factory
  • Push
  • WxApi

Class WxApi

CApplicationComponent
Extended by application\core\utils\System
Extended by application\core\utils\Api
Extended by application\modules\message\core\wx\WxApi
Namespace: application\modules\message\core\wx
Copyright: 2008-2014 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/modules/message/core/wx/WxApi.php

Methods summary

public static object
# getInstance( $className = __CLASS__ )

单例化api

单例化api

Returns

object

Overrides

application\core\utils\Api::getInstance
public
# resetCorp( )
public
# getAeskey( )
public type
# getMediaContent( type $mediaId )

Parameters

$mediaId

Returns

type
public boolean
# push( mixed $data )

发请求给官网让微信推送消息

发请求给官网让微信推送消息

Parameters

$data
$param

Returns

boolean
public integer
# createDept( string $deptName, integer $pid, $order, $url )

创建部门

创建部门

Parameters

$deptName
$pid
$order
$url

Returns

integer
创建后的部门ID
public
# createUser( $user, $url )
public type
# sendInvition( string $url, array $userid )

Parameters

$url
官网那边接收请求地址
$userid
需要发送邀请的用户id(姓名转成拼音)列表

Returns

type
public array
# getDeptUser( integer $url, integer $departmentId = 1, $status = 0 )

获取已同步的微信员工

获取已同步的微信员工

Parameters

$url
$departmentId 部门id
$departmentId
$status 0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
$status

Returns

array
public string
# createOauthUrl( string $route, integer $appId )

创建微信用户验证URL

创建微信用户验证URL

Parameters

$route
$appId
$appId微信端appId

Returns

string
public sring
# parseMobileUrl( string $mobileTag, string $url, string $field )

解析网页端的URL为微信端的URL

解析网页端的URL为微信端的URL

Parameters

$mobileTag
微信端的URL
$url
待解析的URL
$field
ID字段

Returns

sring
public sring
# parseNewMobileUrl( string $mobileTag, string $url, string $field )

解析网页端的URL为微信端的URL

解析网页端的URL为微信端的URL

Parameters

$mobileTag
微信端的URL
$url
待解析的URL
$field
ID字段

Returns

sring
protected boolean
# getSendIsSuccess( string $res )

获取主动发送信息是否成功

获取主动发送信息是否成功

Parameters

$res
上游返回的反馈信息

Returns

boolean
public type
# getHostInfo( )

获取项目地址eg:http://abc.com

获取项目地址eg:http://abc.com

Returns

type

Methods inherited from application\core\utils\Api

buildUrl(), fetchResult(), getOpt(), setOpt()

Constants summary

string REFRESH_TOKEN_URL
# 'https://qyapi.weixin.qq.com/cgi-bin/gettoken'
string MEDIA_UPLOAD_URL
# 'https://qyapi.weixin.qq.com/cgi-bin/media/upload'
string OAUTH_URL
# 'https://open.weixin.qq.com/connect/oauth2/authorize'
string CREATE_MENU_URL
# 'https://qyapi.weixin.qq.com/cgi-bin/menu/create'
string DEL_MENU_URL
# 'https://qyapi.weixin.qq.com/cgi-bin/menu/delete'

Properties summary

Properties inherited from application\core\utils\Api

$curlopt

IBOS open source API documentation generated by ApiGen