Step 3
Enter the name of your project and select a pricing plan, create your first project.
Step 4
Wait for the project to be created. Go to the created project.
Go to the 'Access' tab, click on the link with the address of your admin panel in the URL line.
Step 5
After the project status changes to "Working". Enter the login and password that will be sent to the email address you provided during registration, and click the 'Login' button.
Before starting work with the API, you need to add content. Let's consider an example with a page. Go to the 'Content Management' section. Click the 'Create page' button.
Select in the "Page Types" field - for "Regular Page", enter Page Title, Page URL, Menu Item Name for the page, and any text in the editor. All data is saved after entering them.
Your page has been created and you can see it in the list of pages in the "Content Management" section.
Go to the "Settings" menu, then go to the "Application Tokens" tab. Enter the name of your application (the name can be anything) and click the "Create" button. After the certificate is created, click on the "Show" icon in the table and click the "Copy" button.
Step 6
Let's consider an example of obtaining a created page using JavaScript. Open a text editor and create an HTML document, specify the address to the JavaScript script, and create an H1 tag and a div tag for displaying data on the page.
In the js file, specify the address of your project and the path to the API method for getting a page by url. At the end of the path, specify the url that you specified when creating the page. In the request headers, specify "x-app-token" and insert the token you copied from the OneEntry Settings.
Step 7
Open your browser, open your html file and you will see on the screen the data received from your first page.
Go to the browser console and you will see the received data from the API.
Done!
Now you can create pages, attach attributes, blocks, forms, add products and much more. You can read the full description of the system features in the user manual, as well as watch system reviews.