Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Making an HTTP Post Request with data attached

$
0
0

Replies: 0

I was going to ask if this supports OAuth 2.0, but I searched this forum and found a mention of this option in the translation section of the forum. So I assume the answer is yes, but please confirm for me. Thanks.

Secondly, I want to send an HTTP Post Request with attached data to a google api (e.g. https://proximitybeacon.googleapis.com/v1beta1/{+beaconName}/attachments). Am I able to send the needed data along with the request? (Either free or pay version is ok).

The official Google description of this post process is:

“Attachment data must contain two parts:

  • A namespaced type.
  • The actual attachment data itself.

The namespaced type consists of two parts, the namespace and the type. The namespace must be one of the values returned by the namespaces endpoint, while the type can be a string of any characters except for the forward slash (/) up to 100 characters in length. Attachment data can be up to 1024 bytes long. Authenticate using an [OAuth access token](https://developers.google.com/identity/protocols/OAuth2) from a signed-in user with **Is owner** or **Can edit** permissions in the Google Developers Console project.
Request: POST https://proximitybeacon.googleapis.com/v1beta1/{+beaconName}/attachments
Mandatory HTTP Headers:”

Thirdly, can the plugin also handle PUT requests?

This plugin is a great idea and badly needed. Thanks for working on this!


Viewing all articles
Browse latest Browse all 59525

Trending Articles