{"id":33583,"date":"2014-12-24T02:27:11","date_gmt":"2014-12-24T02:27:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-textit-sdk\/"},"modified":"2014-12-24T02:27:11","modified_gmt":"2014-12-24T02:27:11","slug":"wp-textit-sdk","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-textit-sdk\/","author":13776022,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"trunk","tested":"4.1.42","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Wordpress TextIt SDK","header_author":"Amber Gregory","header_description":"","assets_banners_color":"","last_updated":"2014-12-24 02:27:11","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":10,"downloads":695,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[36213,71290],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-33583","plugin","type-plugin","status-closed","hentry","plugin_tags-sdk","plugin_tags-textit","plugin_committers-amberau"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-textit-sdk.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>How it works<\/strong><\/p>\n\n<ol>\n<li>Create your TextIt account <\/li>\n<li>Go to your TextIt account page and enter {your wordpress url}\/textit-webhook-receiver as your WebHook URL <\/li>\n<li>Paste the generated API token in the Wordpress TextIt SDK settings page and save changes <\/li>\n<li>Go to Settings &gt; Permalinks and save to refresh the Wordpress rewrite rules <\/li>\n<li>Now you can use the textit_webhook_event hook in your custom plugin or theme to respond to TextIt webhook events, and WordpressTextItSDK::textItDo() to call the TextIt REST API<\/li>\n<\/ol>\n\n<p><strong>TextIt API<\/strong>\nFull documentation is available: https:\/\/textit.in\/api\/v1<\/p>\n\n<p>Quick method reference:<\/p>\n\n<ul>\n<li>contacts - To list or modify contacts. <\/li>\n<li>fields - To list or modify contact fields. <\/li>\n<li>messages - To list and create new SMS messages. <\/li>\n<li>relayers - To list, create and remove new Android phones. <\/li>\n<li>calls - To list incoming, outgoing and missed calls as reported by the Android phone. <\/li>\n<li>flows - To list active flows. <\/li>\n<li>runs - To list or start flow runs for contacts. <\/li>\n<li>campaigns - To list or modify campaigns on your account. <\/li>\n<li>events - To list or modify campaign events on your account. <\/li>\n<li>boundaries - To retrieve the geometries of the administrative boundaries on your account. <\/li>\n<\/ul>\n\n<p><strong>textItDo()<\/strong><\/p>\n\n<p>To call the TextIt API, use <code>WordpressTextItSDK::textItDo($method, $args, $http)<\/code><\/p>\n\n<pre><code>$method - string - One of the TextIt API methods listed above\n\n$args - array - 2 dimensional array containing argument names and values. Details of accepted arguments in the TextIt documentation\n\n$http - string - Either `GET` or `POST`, depending on whether you want to list or add \/ modify data\n<\/code><\/pre>\n\n<p>The return value will be either an array with a TextIt API response or an exception<\/p>\n\n<p>E.g. <code>WordpressTextItSDK::textItDo( 'contacts', array(), 'GET' )<\/code> would return a list of contacts from your TextIt account<\/p>\n\n<p><strong>textit_webhook_event<\/strong><\/p>\n\n<p>To respond to TextIt webhook events (e.g. Incoming Messages, Outgoing Messages, Incoming Calls, Outgoing Calls, Relayer Alarms) use <code>add_action( 'textit_webhook_event', 'my_custom_function', 2, 1 )<\/code><\/p>\n\n<p>Your custom function should accept a single argument - <code>$event<\/code> - an array containing the data TextIt posted via the webhook<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>wp-textit-sdk<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>","raw_excerpt":"TextIt is a platform for building interactive SMS applications. This SDK makes using the TextIt API v1 in your Wordpress plugin easy.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=33583"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/amberau"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33583"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33583"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33583"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33583"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33583"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}