3
votes
Accepted
External Website Post to EE Entries
In this case, the POST submission would be rejected not due to XSS, but CSRF. It's not an appropriate API to use for continuous submission from an external source.
I haven't used Reinos' add-on, but ...
3
votes
Channel Entry API and Grid field
I'm pretty sure you can just pass in the fieldname the row and column like
$data['field_id_X'][rows][new_row_1][col_id_1] = 'row 1';
$data['field_id_X'][rows][new_row_2][col_id_1] = 'row 2';
Just ...
3
votes
Accepted
Payment Gateway Integration API Directory
I would advise that you built it into an Omnipay gateway.
Omnipay is the payment provider library that powers Exp:resso Store 2 and so by building it for Omnipay it will work on Store.
They have a ...
2
votes
Accepted
How to create a button on the Entry Edit page?
There is no API for adding anything other than fieldtypes or tabs to the entry screen. I'd suggest one of two options:
Build a fieldtype which displays your button and adds the javascript you need, ...
2
votes
Payment Gateway Integration API Directory
Ideally you should use them to create a plugin but technically you can place them wherever you wish so long as whatever needs to reference them can reach them.
2
votes
Accepted
Create a channel entry via POST request
Essentially, you'll create a module with an ACT URL. (https://docs.expressionengine.com/v2/development/modules.html).
You'll have your mod.module_name.php file, which will contain your logic to ...
1
vote
Accepted
Api_channel_fields - cannot add group id
As far as I know there is no way to do this using API. I think you should try with EE Model. You can easily create new field using the Model. And Model is most effective way to handle all these core ...
1
vote
Accepted
Preventing SQL Injections
You should always scrub any user input before it gets to your query.
The first thing you should do is run and input variables through the input class.
i. e. $var = ee()->input->post('my_var', ...
1
vote
Accepted
Passing a GET variable back in a query while using mysqli_real_escape_string()
Use ee()->db->escape_str($event) - it's the native way to escape potentially-unsafe data in EE.
1
vote
Accepted
Cartthrob - Presales questions
This sounds pretty good that their POS (is it just a POS? Not an ERP too?) has a rest API. That means that in the grand scheme of things it should be a nice job to push and pull data.
There are a few ...
1
vote
How to create a Grid field in extension
Have you had a look at the Grid Model that is in the system folder? Specifically /system/expressionengine/models/grid_model.php
This model has methods for creating new Grid Fields (create_field on ...
1
vote
How to import API data into EE
I've used DataGrab to achieve this in the past. Solspace Importer will also do the same.
1
vote
Channel Entry API and Grid field
Very close to @johnathan-waters answer I imported new grid rows using this code
$data['field_id_X']['rows']['new_row_Y']['col_id_Z'] = 'value';
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
api × 21channel-entries-api × 5
ee2 × 3
grid × 3
rest × 3
channel-entries × 2
add-on × 2
php × 2
database × 2
channel-fields × 2
expresso-store × 1
cartthrob × 1
safecracker × 1
playa × 1
channel × 1
custom-fields × 1
forms × 1
extension × 1
entries × 1
channel-images × 1
query × 1
mysql × 1
ee × 1
google-maps-for-ee × 1
entry × 1