67 Posts
Mario Adrian
9 years ago
3
Topic

Hello

is there anyway i can use a raw php to submit as if it's submitted through the seblod form?

any API that i can use?

something like $content_type = {seblod API} 

$content_type->submitNew('the variables')

maybe?

context: i need to import data from csv to the web

i know the seblod importer, but i need to transform/change the data before importing it into seblod systems. so i created a raw php that accepts csv , transform/change the data in the php then make it as if it's submitted through seblod form

[since raw query seems so complicated so i was wondering if there is any API that i can use]

Get a VIP membership
4229 Posts
Kadministrator
9 years ago
1
Level 1

Most likely it would be easier if you use importer as base and do your transformations inthere, otherwise you will need to manually create posted data, there is no API for this.

67 Posts
Mario Adrian
9 years ago
0
Level 2

Hello

any documentation on how to manually do posted data?

also as an alternative, i tried to generate another csv from the php to be imported but when i tried to import

when i click the log

any suggestion?

i need to know why my items are canceled [they are created at first import, then canceled when i tried to update them]

67 Posts
Mario Adrian
9 years ago
0
Level 1

hello?

any suggestion for this problem?

Get a Book for SEBLOD