Php 在LinkedIN OAuth中获得403

Php 在LinkedIN OAuth中获得403,php,linkedin,linkedin-jsapi,Php,Linkedin,Linkedin Jsapi,我得到了这个错误 Invalid auth/bad request (got a 403, expected HTTP/1.1 20X or a redirect) at this line $data = $oauthc->fetch($url, $body, $method, $headers); 当我使用这个代码时 try { $oauthc = new \OAuth(CUSTOMER_KEY, CUSTOMER_SECRET,

我得到了这个错误

Invalid auth/bad request (got a 403, expected HTTP/1.1 20X or a redirect) at this line
$data = $oauthc->fetch($url, $body, $method, $headers);
当我使用这个代码时

try {
            $oauthc = new \OAuth(CUSTOMER_KEY, CUSTOMER_SECRET,
                OAUTH_SIG_METHOD_HMACSHA1,OAUTH_AUTH_TYPE_URI);
            $oauthc->enableDebug();
            $oauthc->setNonce(rand());

            $url = 'https://api.linkedin.com/v1/jobs';
            $body = file_get_contents('http://azaidi-usweb-08.vps.zulily.com/job.xml');
            $method = OAUTH_HTTP_METHOD_POST;
            $headers = array('Content-Type' => 'text/xml');

            $data = $oauthc->fetch($url, $body, $method, $headers);


            $response = $oauthc->getLastResponse();
            $response_info = $oauthc->getLastResponseInfo();

            print "<pre>";
            print_r($oauthc->debugInfo);
            print_r($response);
            print_r($response_info);
            print "</pre>";

            exit;
}catch(OAuthException $e) {
    print_r($oauthc->debugInfo);
    print_r($e);
    exit;
}
试试看{
$oauthc=new\OAuth(客户密钥、客户密钥、,
OAUTH_SIG_方法(HMACSHA1,OAUTH_认证类型(URI));
$oauthc->enableDebug();
$oauthc->setNonce(rand());
$url='1https://api.linkedin.com/v1/jobs';
$body=文件\u获取\u内容('http://azaidi-usweb-08.vps.zulily.com/job.xml');
$method=OAUTH\u HTTP\u method\u POST;
$headers=array('Content-Type'=>'text/xml');
$data=$oauthc->fetch($url、$body、$method、$headers);
$response=$oauthc->getLastResponse();
$response_info=$oauthc->getLastResponseInfo();
打印“”;
打印($oauthc->debugInfo);
打印(回复);
打印(响应信息);
打印“”;
出口
}捕获(OAutheException$e){
打印($oauthc->debugInfo);
印刷品(港币);;
出口
}

在深入探讨此问题之前,我们将感谢您的帮助。

。。。作业发布API计划仅适用于选定的合作伙伴。贵公司是否已被纳入该计划?如果没有,无论我们是否解决了此问题,您都无法发布工作。

谢谢,我不知道如何让我的公司被接受,请阅读以了解更多信息。我相信,作为初始筛选标准,你需要能够发布最少数量的月度工作。