Answer the question
In order to leave comments, you need to log in
1C Bitrix. How to connect data from API and infoblock?
Good afternoon. The essence of the question is this:
There is a list of classes in the gym, which we receive through an ajax request. In the raw version, each element of the lesson looks like this:
{
"AppointmentID": "nevazhno",
"Service": {
"Title": " ",
"Id": "nevazhno",
"Color": null,
"Course": {
"Title": " ",
"Id": "nevazhno"
},
"Photo": "nevazhno"
},
"Group": {
"Title": " ",
"Id": "nevazhno"
},
"Room": {
"Title": "nevazhno",
"Id": "nevazhno"
},
"Employee": {
"FullName": " ",
"Id": "nevazhno",
"Position": {
"Title": " ",
"Id": "nevazhno"
}
},
"AvailableSlots": 30,
"StartDate": "2019-03-21 07:00",
"EndDate": "2019-03-21 20:00",
"Duration": 780,
"preEntry": true,
"ClubID": "nevazhno",
"Cost": 490,
"Commercial": true,
"CheckinTime": {
"StartDateTime": "2019-03-21T00:00:00",
"EndDateTime": "2019-03-21T20:00:00"
},
"MarketingEvent": false,
"Photo": "nevazhno"
},
Answer the question
In order to leave comments, you need to log in
First, decide on the structure of the infoblock. Create the required properties. Think whether 1 information block can logically cope with this task.
Perhaps you need to create sections, for example, running will be a section and an info block is already in it.
Here are examples of requesting information from the infoblock via the blog.ivru.net/?id=43 API (it makes sense to look when you decide on the structure).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question