Beginner
13m read

Lifecycle

1

Submit your App

Server-side
First, make sure that you have set up an account name on the Stripe Dashboard.

Then install the libraries for access to the Stripe API from your application:


 -H "Authorization: Bearer d59f681797fbb3758b2a0ce8e5f31a199e2733110cb468bb2bb0d77f23417b32"
The following header should be used:

Authorization: Bearer <token>

const Webflow = require('webflow-api')
const webflow = new Webflow({ token: 'd59f681797fbb3758b2a0ce8e5f31a199e2733110cb468bb2bb0d77f23417b32' })

webflow.info()
 .then(info => console.log(info

2

HTTP Header

The following header should be used:

Authorization: Bearer <token>

curl https://api.webflow.com/info \
 -H "Authorization: Bearer d59f681797fbb3758b2a0ce8e5f31a199e2733110cb468bb2bb0d77f23417b32" \
 -H 'accept-version: 1.0.0'

const Webflow = require('webflow-api')
const webflow = new Webflow({ token: 'd59f681797fbb3758b2a0ce8e5f31a199e2733110cb468bb2bb0d77f23417b32' })

webflow.info()
 .then(info => console.log(info))

3

Meta

Get Current Authorization Info

Example request

const webflow = new Webflow({ token: api_token });

// Promise <{}>
const info = webflow.info();

info.then(x => console.log(x));

Example JSON response

{
 "_id": "55818d58616600637b9a5786",
 "createdOn": "2016-10-03T23:12:00.755Z",
 "grantType": "authorization_code",
 "lastUsed": "2016-10-10T21:41:12.736Z",
 "sites": [ ],
 "orgs": [
   "551ad253f0a9c0686f71ed08"
 ],
 "users": [
   "545bbecb7bdd6769632504a7"
 ],
 "rateLimit": 60,
 "status": "confirmed",
 "application": {
   "_id": "55131cd036c09f7d07883dfc",
   "description": "OAuth Testing Application",
   "homepage": "https://webflow.com",
   "name": "Test App",
   "owner": "545bbecb7bdd6769632504a7",
   "ownerType": "Person"
 }
}

{
 "_id": "55818d58616600637b9a5786",
 "createdOn": "2016-10-03T23:12:00.755Z",
 "grantType": "authorization_code",
 "lastUsed": "2016-10-10T21:41:12.736Z",
 "sites": [ ],
 "orgs": [
   "551ad253f0a9c0686f71ed08"
 ],
 "users": [
   "545bbecb7bdd6769632504a7"
 ],
 "rateLimit": 60,
 "status": "confirmed",
 "application": {
   "_id": "55131cd036c09f7d07883dfc",
   "description": "OAuth Testing Application",
   "homepage": "https://webflow.com",
   "name": "Test App",
   "owner": "545bbecb7bdd6769632504a7",
   "ownerType": "Person"
 }
}

4

Submit your App

Server-side
First, make sure that you have set up an account name on the Stripe Dashboard.

Then install the libraries for access to the Stripe API from your application:

{
 "_id": "580e63fc8c9a982ac9b8b745",
 "lastUpdated": "2016-10-24T19:42:38.929Z",
 "createdOn": "2016-10-24T19:41:48.349Z",
 "name": "Blog Posts",
 "slug": "post",
 "singularName": "Blog Post",
 "fields": [
   {
     "id": "7f62a9781291109b9e428fb47239fd35",
     "editable": true,
     "required": false,
     "type": "RichText",
     "slug": "post-body",
     "name": "Post Body"
   },

{
 "_id": "580e63fc8c9a982ac9b8b745",
 "lastUpdated": "2016-10-24T19:42:38.929Z",
 "createdOn": "2016-10-24T19:41:48.349Z",
 "name": "Blog Posts",
 "slug": "post",
 "singularName": "Blog Post",
 "fields": [
   {
     "id": "7f62a9781291109b9e428fb47239fd35",
     "editable": true,
     "required": false,
     "type": "RichText",
     "slug": "post-body",
     "name": "Post Body"
   },

5

Default Fields

Each collection has a number of fields that are always present. Some of these fields are editable and some of them cannot be changed by users.

{
 "_id": "580e63fc8c9a982ac9b8b745",
 "lastUpdated": "2016-10-24T19:42:38.929Z",
 "createdOn": "2016-10-24T19:41:48.349Z",
 "name": "Blog Posts",
 "slug": "post",
 "singularName": "Blog Post",
 "fields": [
   {

{
     "validations": {
       "singleLine": false
     },
     "id": "ac4ffead755a78c710c44042f528b073",
     "helpText": "A summary of the blog post that appears on blog post grid",
     "editable": true,
     "required": false,
     "type": "PlainText",
     "slug": "post-summary",
     "name": "Post Summary"
   },

Next doc

Try Engrafa — it's free

Engrafa is number one project managment tool. Make your team collaboration as seamless as possible.

Go to Engrafa.com