Closed clemens-tolboom closed 6 years ago
+1
@clemens-tolboom
do I have to install oauth or can I install my test script in drupal root?
No. However I'd strongly suggest using authentication on your API.
what is grant_type:
GRANT-TYPE
, ?
This is the OAuth 2 grant type supported by the Simple OAuth Drupal module. Right now that's just password
. I updated the documentation to note this.
where is a supposed to work html / browser example? See below.
The reason your example does not work is that Waterwheel does not know anything about your API in it's initial state. Waterwheel can configure itself to support your API, but you need to run .populateResources()
prior to making any API requests.
I have no good clue what to do exactly to get this up and running.
grant_type: 'GRANT-TYPE',
?The example below is placed in Drupal root together with the dist/waterwheel.js file (example reported in #55)