Step 1

To get started, register in your personal account.

step1

Step 2

Go to the 'Projects' section in the left menu and click the 'Create Project' button.

step2

Step 3

Enter the name of your project and select a pricing plan, create your first project.

step3

Step 4

Wait for the project to be created. Go to the created project.

step4

Go to the 'Access' tab, click on the link with the address of your admin panel in the URL line.

step4

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.

step5

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.

step5

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.

step5

Your page has been created and you can see it in the list of pages in the "Content Management" section.

step

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.

step5

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.

step6

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.

step6

Description of methods for obtaining data via API can be found in the personal account in the 'API' section.

step6

Step 7

Open your browser, open your html file and you will see on the screen the data received from your first page.

step7

Go to the browser console and you will see the received data from the API.

step7

Done!

Now you can create pages, attach attributes, blocks, forms, add products and much more. You can familiarize yourself with the full description of the system's capabilities in the User Manual, as well as by watching tutorials on our YouTube channel.