Oct 16, 2021
4
Level 1
Laravel & External API
I am trying to use an API token to pull data from an outside crm.
Is there a tutorial on how I can set up laravel for this?
In a nutshell, I am trying to pull an ecommerce admin backend and use it on my laravel front end. I need to pull product data and all.
Example API from outside crm:
{
"meta": {
"total_count": 0
},
"included": [
{}
],
"data": [
{
"id": "string",
"type": "string",
"attributes": {
"manufacturer": "string",
"model": "string",
"year": "string",
"slug": "string",
"location": "string",
"serial_number": "string",
"stock_number": "string",
"condition": "string",
"price": "string",
"listing_type": "string",
"private_notes": "string",
"rank": "string",
"extra_data": "string",
"created_at": "2021-10-16T10:38:22.016Z",
"updated_at": "2021-10-16T10:38:22.016Z",
"sold_at": "2021-10-16T10:38:22.016Z",
"deleted_at": "2021-10-16T10:38:22.016Z"
},
"relationships": {
"primary_image": {
"data": {
"id": "string",
"type": "string"
}
},
"images": {
"data": [
{
"id": "string",
"type": "string"
}
]
},
"videos": {
"data": [
{
"id": "string",
"type": "string"
}
]
},
"specifications": {
"data": [
{
"id": "string",
"type": "string"
}
]
},
"private_fields": {
"data": [
{
"id": "string",
"type": "string"
}
]
},
"translations": {
"data": [
{
"id": "string",
"type": "string"
}
]
},
"attachments": {
"data": [
{
"id": "string",
"type": "string"
}
]
}
}
}
]
}
Please or to participate in this conversation.