|
|
@@ -8,12 +8,12 @@ |
|
|
|
# @purpose: Performs functions against the European Patent Office's Open Patent Services (OPS) API |
|
|
|
# @acknowledgements: |
|
|
|
# OPS documented at https://www.epo.org/searching-for-patents/data/web-services/ops.html |
|
|
|
# OPS RESTful API specification at http://documents.epo.org/projects/babylon/eponet.nsf/0/F3ECDCC915C9BCD8C1258060003AA712/$File/ops_v3.2_documentation_-_version_1.3.16_en.pdf |
|
|
|
# OPS RESTful API specification at http://documents.epo.org/projects/babylon/eponet.nsf/0/F3ECDCC915C9BCD8C1258060003AA712/$File/ops_v3.2_documentation_-_version_1.3.18_en.pdf |
|
|
|
# OPS API functions list at https://developers.epo.org/ops-v3-2/apis |
|
|
|
|
|
|
|
function get_access_token() { |
|
|
|
|
|
|
|
// OPS API credentials (details at http://documents.epo.org/projects/babylon/eponet.nsf/0/F3ECDCC915C9BCD8C1258060003AA712/$File/ops_v3.2_documentation_-_version_1.3.16_en.pdf) |
|
|
|
// OPS API credentials (details at http://documents.epo.org/projects/babylon/eponet.nsf/0/F3ECDCC915C9BCD8C1258060003AA712/$File/ops_v3.2_documentation_-_version_1.3.18_en.pdf) |
|
|
|
$ops_url = $_ENV["OPS_URL"] . '3.2/auth/accesstoken'; |
|
|
|
$auth = base64_encode($_ENV["CONSUMER_KEY"] . ":" . $_ENV["CONSUMER_SECRET"]); |
|
|
|
|