Marketo REST API: Form objects? - marketo

Is it possible to get a list of Form objects via the API yet?
I can't seem to find anything promising in the developer docs, but was hoping it would be in the Asset or Program Object APIs.
I would like to be able to pull a list of available forms into my website CMS via a custom plugin, so I can get the IDs of the forms to easily embed them into the CMS templates.

Related

Separate plugins or one giant plugin on WP

I’m building a WP plugin to enhance a website, and come to an interrogation with the workflow.
Basically, I have to create a custom post type, assorted with several custom taxonomies, which will be used/displayed on the frontend and backend, and create a backend section in order to interact with our CRM, and Supabase via their respective APIs (service centralisation).
All of the second part is only intended to be used/displayed on the admin section, to logged users.
However, when creating/saving a custom post type, or when viewing it from the frontend, I have to make a GET request to the CRM to fetch some data and store it in JSON somewhere (24h cache).
That I can do.
At the moment, I worked on the CPT part, and made a class to interact with the CRM, with credentials stored in wp_options. I now have to work on the backend part.
My question is: what are the best practices here? Keep it in a single plugin or divide into several plugins?
And if I divide, how should I turn it? 2 plugins, one for the CPT and one for the backend? Or go even deeper, and get the CRM and Supabase their own simple plugin, and call their methods to make my requests?
I am short of ideas here, so if you encountered this situation, could you enlighten me?

Can I get Wordpress Plugin Data through Wordpress API?

I am looking to build a wordpress website with GatsbyJS (so no PHP usage. Just using Wordpress API and react JSX on the front-end).
I know I can get any core wordpress data at /wp-json route, but I'm not sure about plugin data. I've tried to look up plugin data and it does not seem to be included in wp-json.
I found this "compatible plugins" page: https://v2.wp-api.org/guide/plugins/
Does this mean that for most other plugins data would not be present in the Wordpress API?
Correct. Unless these plugins expose their data via the REST API (either by extending the existing endpoints or by creating their own, like some plugins do), you won't be able to access it.
In such cases, you either ask the developers to expose their plugin's data via the REST API or you code some custom endpoints yourself to get the data you need from them.

Can you create a Test & Target plugin programmatically?

Is it possible to create a T&T plugin via the API? I've seen people create plugins to pass T&T AB test data to Google Analytics and other analytics packages, and would like to do this via the T&T API because I have several clients using T&T. I'm trying to pass T&T events to Snowplow Analytics.
Plugins require two steps - (1) HTML Offer and (2) Javascript Plugin that references the HTML Offer. It seems like you can create an HTML Offer via the API, but I don't see how to create the Javascript Plugin programmatically via the API.
You can create a plugin in Test and Target using offers. In your offer code you can get T&T values and pass them to GA or any other analytics platform.
var Campaign = '${campaign.name}';
var Recipe = '${campaign.recipe.name}';
Here is full blog post about this:
http://www.blastam.com/blog/index.php/2012/08/how-to-integrate-adobe-test-target-sitecatalyst-google-analytics

Wordpress to apps via phoneGAP

I am looking for a tutorial that shows how to use PhoneGAP to convert a Classified Ads website( eg gumtree) that created using wordpress to apps ( ios,andriod and windows). I have spent 3 hours to find something but could not find it :(
I am in the learning stage, appreciate your support.
You can use Phonegap to build apps that will read JSON feeds from your Wordpress sites. Here is an idea where to start:
To get the data from your WordPress sites you will need to use a JSON API (you can search google for such APIs) for example: JetPack which includes WordPress JSON API.
You can find quite good documentation for the API.
Also you can use OAUTH2 to authenticate.

How to call a SOAP web service from a Wordpress form?

I have a Wordpress site that I am currently working on and have set up a form with the CformsII plugin but the client would like the form data submitted to a SOAP web service.
I have the SOAP webservice URL and XML data but the CformsII plugin in Wordpress seems to use a standard HTML POST method which I have been told that the SOAP webservicewill not handle.
I have never used or had any experience with SOAP web services before so I am really in need of guidance as to how I can go about submitting form data from a Wordpress site (with or without the CformsII plugin) to a SOAP webservice.
Has anyone achieved this previously or know of any plugin that could help?
I wish I had a better answer for you, but I'm afraid it'll involve some coding and understanding on SOAP. (Because I couldn't find any WordPress plugins that implemented a generic SOAP client or more specifically a form submitter with SOAP support).
This post author collected a nice group of links that should help get you started: https://wordpress.stackexchange.com/questions/14804/embedding-a-soap-client-into-a-wordpress-plugin
Personally, I use GravityForms for all my projects (but it's a paid plugin). But they provide a nice API and there's a hook called gform_post_submission that I've personally used a lot. (I've "posted" to REST services using that hook).
There is a soap plugin framework for wordpress that allows you to create/expose wordpress behavior as soap api. http://www.amazon.com/dp/B00D1AYIG8 and http://github.com/patrickingle/wp-soap-services

Resources