Completed
Push — master ( 8f5b55...c52b56 )
by frey
04:17 queued 01:50
created

API::getCallbackIp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace EntWeChat\Fundamental;
4
5
use EntWeChat\Core\AbstractAPI;
6
7
class API extends AbstractAPI
8
{
9
    const API_CALLBACK_IP = 'https://qyapi.weixin.qq.com/cgi-bin/getcallbackip';
10
11
    /**
12
     * Get wechat callback ip.
13
     *
14
     * @return \EntWeChat\Support\Collection
15
     */
16
    public function getCallbackIp()
17
    {
18
        return $this->parseJSON('get', [self::API_CALLBACK_IP]);
19
    }
20
}
21