Constants

mchid

mchid = ""

privatekey

privatekey = ""

Properties

$appId

$appId : 

Type

$appSecret

$appSecret : 

Type

$parameters

$parameters : 

Type

$jsApiTicket

$jsApiTicket : 

Type

$jsApiTime

$jsApiTime : 

Type

$instance

$instance : 

Type

Methods

getInstance()

getInstance() 

init()

init(  $options) : \wechat\设置appid和appsecret

Parameters

$options

Returns

\wechat\设置appid和appsecret

wxHttpsRequest()

wxHttpsRequest(  $url,   $data = null) 

Parameters

$url
$data

wxHttpsRequestPem()

wxHttpsRequestPem(  $url,   $vars,   $second = 30,   $aHeader = array()) 

Parameters

$url
$vars
$second
$aHeader

wxAccessToken()

wxAccessToken(  $appId = null,   $appSecret = null) 

Parameters

$appId
$appSecret

wxJsApiTicket()

wxJsApiTicket(  $appId = null,   $appSecret = null) 

Parameters

$appId
$appSecret

wxVerifyJsApiTicket()

wxVerifyJsApiTicket(  $appId = null,   $appSecret = null) 

Parameters

$appId
$appSecret

wxGetUser()

wxGetUser(  $openId) 

Parameters

$openId

wxQrCodeTicket()

wxQrCodeTicket(  $jsonData) 

Parameters

$jsonData

wxQrCode()

wxQrCode(  $ticket) 

Parameters

$ticket

wxSendTemplate()

wxSendTemplate(  $jsonData) 

Parameters

$jsonData

wxSetSend()

wxSetSend(  $touser,   $template_id,   $url,   $data,   $topcolor = '#7B68EE') 

Parameters

$touser
$template_id
$url
$data
$topcolor

wxOauthBase()

wxOauthBase(  $redirectUrl,   $state = "",   $appId = null) 

Parameters

$redirectUrl
$state
$appId

wxOauthUserinfo()

wxOauthUserinfo(  $redirectUrl,   $state = "",   $appId = null) 

Parameters

$redirectUrl
$state
$appId

wxHeader()

wxHeader(  $url) 

Parameters

$url

getUserInfo()

getUserInfo(  $code,   $appId = null,   $appSecret = null) 

Parameters

$code
$appId
$appSecret

wxOauthUser()

wxOauthUser(  $OauthAT,   $openId) 

Parameters

$OauthAT
$openId

wxMenuCreate()

wxMenuCreate(  $jsonData) 

Parameters

$jsonData

wxMenuGet()

wxMenuGet() 

wxMenuDelete()

wxMenuDelete() 

wxMenuGetInfo()

wxMenuGetInfo() 

wxServiceAdd()

wxServiceAdd(  $jsonData) 

Parameters

$jsonData

wxServiceUpdate()

wxServiceUpdate(  $jsonData) 

Parameters

$jsonData

wxServiceDelete()

wxServiceDelete(  $jsonData) 

Parameters

$jsonData

wxServiceUpdateCover()

wxServiceUpdateCover(  $kf_account,   $media = '') 

Parameters

$kf_account
$media

wxServiceList()

wxServiceList() 

wxServiceOnlineList()

wxServiceOnlineList() 

wxServiceSend()

wxServiceSend(  $jsonData) 

Parameters

$jsonData

wxServiceSessionAdd()

wxServiceSessionAdd(  $jsonData) 

Parameters

$jsonData

wxServiceSessionClose()

wxServiceSessionClose() 

wxServiceSessionGet()

wxServiceSessionGet(  $openId) 

Parameters

$openId

wxServiceSessionList()

wxServiceSessionList(  $kf_account) 

Parameters

$kf_account

wxServiceSessionWaitCase()

wxServiceSessionWaitCase() 

wxDeviceApply()

wxDeviceApply(  $jsonData) 

Parameters

$jsonData

wxDeviceUpdate()

wxDeviceUpdate(  $jsonData) 

Parameters

$jsonData

wxDeviceBindLocation()

wxDeviceBindLocation(  $jsonData) 

Parameters

$jsonData

wxDeviceSearch()

wxDeviceSearch(  $jsonData) 

Parameters

$jsonData

wxPageAdd()

wxPageAdd(  $jsonData) 

Parameters

$jsonData

wxPageUpdate()

wxPageUpdate(  $jsonData) 

Parameters

$jsonData

wxPageSearch()

wxPageSearch(  $jsonData) 

Parameters

$jsonData

wxPageDelete()

wxPageDelete(  $jsonData) 

Parameters

$jsonData

wxMaterialAdd()

wxMaterialAdd(  $media = '') 

Parameters

$media

wxDeviceBindPage()

wxDeviceBindPage(  $jsonData) 

Parameters

$jsonData

wxGetShakeInfo()

wxGetShakeInfo(  $jsonData) 

Parameters

$jsonData

wxGetShakeStatistics()

wxGetShakeStatistics(  $jsonData) 

Parameters

$jsonData

wxNonceStr()

wxNonceStr(  $length = 16,   $type = false) 

Parameters

$length
$type

wxMchBillno()

wxMchBillno(  $mchid = null) 

Parameters

$mchid

wxSetParam()

wxSetParam(  $parameters) 

Parameters

$parameters

wxFormatArray()

wxFormatArray(  $parameters = null,   $urlencode = false) 

Parameters

$parameters
$urlencode

wxMd5Sign()

wxMd5Sign(  $content,   $privatekey) 

Parameters

$content
$privatekey

wxSha1Sign()

wxSha1Sign(  $content) 

Parameters

$content

wxJsapiPackage()

wxJsapiPackage() 

wxCardPackage()

wxCardPackage(  $cardId,   $timestamp = '') 

Parameters

$cardId
$timestamp

wxCardAllPackage()

wxCardAllPackage(  $cardIdArray = array(),   $timestamp = '') 

Parameters

$cardIdArray
$timestamp

wxCardListPackage()

wxCardListPackage(  $cardType = "",   $cardId = "") 

Parameters

$cardType
$cardId

wxArrayToXml()

wxArrayToXml(  $parameters = null) 

Parameters

$parameters

wxCardUpdateImg()

wxCardUpdateImg() 

wxCardColor()

wxCardColor() 

wxBatchGet()

wxBatchGet(  $offset,   $count) 

Parameters

$offset
$count

wxCardCreated()

wxCardCreated(  $jsonData) 

Parameters

$jsonData

wxCardGetInfo()

wxCardGetInfo(  $jsonData) 

Parameters

$jsonData

wxCardWhiteList()

wxCardWhiteList(  $jsonData) 

Parameters

$jsonData

wxCardConsume()

wxCardConsume(  $jsonData) 

Parameters

$jsonData

wxCardDelete()

wxCardDelete(  $jsonData) 

Parameters

$jsonData

wxCardDecryptCode()

wxCardDecryptCode(  $jsonData) 

Parameters

$jsonData

wxCardModifyStock()

wxCardModifyStock(  $cardId,   $increase_stock_value,   $reduce_stock_value) 

Parameters

$cardId
$increase_stock_value
$reduce_stock_value

wxCardQueryCode()

wxCardQueryCode(  $code,   $cardId = '') 

Parameters

$code
$cardId