AD0-E716 practice question 9 of 15

An integration named Marketing is created on the Adobe Commerce instance. The integration has access on Magento_Customer:: customer resources and the access token is xxxxxx. How would the rest API be called to search the customers?

Full set: 69 questions
Answer options
A: Using the integration access token as Bearer: curl -X GET https://magentourl/rest/Vl/customers/search?searchCriteria... -H 'Authorization: Bearer XXXXXX'
B: Passing integration name and access token as http auth credentials: curl -X GET https ://Marketing:XXXXXX(Slmagentourl/rest/Vl/customers/search?5earchCriteria . . . Using integration name as username and access token as password, get the admin token (yyyyyy) via: curl -X POST https://magentourl/rest/Vl/integration/admin/token -d '{"username":"Marketing", "password":"XXXXXX"}' -H 'Content- Correct answer
C: Type: application/json' Use the admin token as Bearer curl -X GET https://magentourl/rest/Vl/customers/search?searchCriteria... -H 'Authorization: Bearer YYYYYY'
Correct Answer:
B. Passing integration name and access token as http auth credentials: curl -X GET https ://Marketing:XXXXXX(Slmagentourl/rest/Vl/customers/search?5earchCriteria . . . Using integration name as username and access token as password, get the admin token (yyyyyy) via: curl -X POST https://magentourl/rest/Vl/integration/admin/token -d '{"username":"Marketing", "password":"XXXXXX"}' -H 'Content-
Explanation

According to the Magento Stack Exchange answer, UI components are used to render various elements on Magento admin pages, such as grids, forms, buttons, etc. UI components are defined in XML files that are located in the view/adminhtml/ui_component directory of each module. To add a custom logic to render a column in a grid, the developer should create a custom class extending MagentoUiComponentListingColumnsColumn and add the custom logic within the prepareDataSource method. This method receives an array of data sources and modifies them according to the column logic. The developer should also add an attribute class to the column node within the module’s customer_listing.xml file and specify their custom class name as its value. Verified Reference: https://magento.stackexchange.com/questions/317821/how-to-add-customlogic-to-render-a-column-in-a-grid-in-magento-2

Scroll to Top