iT邦幫忙

0

[php] 串接ieee oauth2 api疑問

  • 分享至 

  • xImage

Get Access Token ( POST REQUEST)
• Test Url : https://services11.ieee.org/pubsapi/api/oauth/token
• Production Url : https://services13.ieee.org/pubsapi/api/oauth/token
• ("grant_type", "client_credentials")
• ("client_id", "To be provided by IEEE")
• ("client_secret", "To be provided by IEEE")
• ("scope", "ecfarticle,ecfarticles,ecfarticlecount,ecfpublications")

Invoke API using Access Token
• Test Url : https://services11.ieee.org/ *
• Production Url : https://services13.ieee.org/*
• Header ("Authorization" , "Bearer " + Accesstoken);
• Content_Type : application/json

https://ithelp.ithome.com.tw/upload/images/20220514/20097057Xqwuhluzfu.jpg

大家好:

原本想說在網站底下先用一個網頁,點以下類似這樣的連結
就可以獲得資料庫json的資訊(https://services11.ieee.org/pubsapi/ecfarticles?source=39505&pubtype=c)
像是這樣的資訊

{
  "statusCode": 200,
  "status": "Success",
  "publicationtitle": "2016 5th International Conference on Electronic Devices, Systems and Applications (ICEDSA)",
  "articlecount": 2,
  "articleList": [
    {
      "ecfId": "0611136",
      "authors": "Said Test",
      "signature": "Said test",
      "copyrightType": "IEEE",
      "title": "Improving What Matters the Most to e-Service Consumers Using the TDMVM Analysis",
      "email": "said.test@ieee.org ",
      "quoteId": "",
      "paymentStatus": "",
      "contactName": "",
      "contactEmail": "",
      "date": "28-11-2016"
    },

但是事實會產生以下資訊,想請問要怎麼嫁接呢? 我目前只有得到ieee給的source code跟研討會名稱
謝謝
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答