 {"id":366173,"date":"2015-02-15T14:30:36","date_gmt":"2015-02-15T21:30:36","guid":{"rendered":"http:\/\/blog.31posts.com\/?p=87"},"modified":"2022-09-26T05:35:16","modified_gmt":"2022-09-26T12:35:16","slug":"how-to-get-twitter-api-keys","status":"publish","type":"post","link":"https:\/\/jorgep.com\/blog\/how-to-get-twitter-api-keys\/","title":{"rendered":"How to get Twitter API Keys"},"content":{"rendered":"\n<p>This page\/post is placed here as an archive of 31posts.com project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"116\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2020\/08\/31postsArchive-Banner.png\" alt=\"\" class=\"wp-image-366281\" srcset=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2020\/08\/31postsArchive-Banner.png 800w, https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2020\/08\/31postsArchive-Banner-300x44.png 300w, https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2020\/08\/31postsArchive-Banner-768x111.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n<p>In order to allow an application to post entries on your behalf to a Twitter account you will need to get the appropriate credentials.&nbsp; You will need to have access to the desired Twitter account.&nbsp;&nbsp;&nbsp; The following four tokens \/ credentials are needed:<\/p>\n<pre><code>'oauth_access_token' =&gt; Access token\n'oauth_access_token_secret' =&gt; Access token secret\n'consumer_key' =&gt; API key\n'consumer_secret' =&gt; API secret\n<\/code><\/pre>\n<p>The process to authorize an application in Twitter is pretty straight forward:<\/p>\n<table border=\"1\" width=\"601\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"64\"><em>step 1<\/em>.<\/td>\n<td valign=\"top\" width=\"274\">Go to <a href=\"https:\/\/dev.twitter.com\/apps\">https:\/\/dev.twitter.com\/apps<\/a><\/td>\n<td valign=\"top\" width=\"261\"><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/20150118_001145.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"2015-01-18_001145\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/20150118_001145_thumb.png\" alt=\"2015-01-18_001145\" width=\"244\" height=\"133\" border=\"0\"><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"63\"><em>step 1a<\/em>.<\/td>\n<td valign=\"top\" width=\"271\"><strong>*Important* <\/strong>Please login with the twitter account you want to connect to the application.<p><\/p>\n<p>Additionally, in order to create a new app, you must have a valid phone number in your Twitter profile, otherwise it will not let you created it!<\/p>\n<p>You must add your mobile phone to your Twitter profile before creating an application<\/p><\/td>\n<td valign=\"top\" width=\"265\"><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/20150118_001326.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"2015-01-18_001326\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/20150118_001326_thumb.png\" alt=\"2015-01-18_001326\" width=\"244\" height=\"133\" border=\"0\"><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"63\">step 2.<\/td>\n<td valign=\"top\" width=\"270\">Click on Create App&nbsp; and fill up the form, read and accept the agreement by clicking on<p><\/p>\n<p><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image_thumb.png\" alt=\"image\" width=\"167\" height=\"38\" border=\"0\"><\/a><\/p><\/td>\n<td valign=\"top\" width=\"267\"><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/20150118_001456.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"2015-01-18_001456\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/20150118_001456_thumb.png\" alt=\"2015-01-18_001456\" width=\"244\" height=\"133\" border=\"0\"><\/a><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/20150118_001712.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"2015-01-18_001712\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/20150118_001712_thumb.png\" alt=\"2015-01-18_001712\" width=\"244\" height=\"133\" border=\"0\"><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"63\"><\/td>\n<td valign=\"top\" width=\"269\">You&nbsp; now have a screen with your consumer key and consumer secret keys<\/td>\n<td valign=\"top\" width=\"269\"><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image_thumb1.png\" alt=\"image\" width=\"244\" height=\"137\" border=\"0\"><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"62\">step 3.<\/td>\n<td valign=\"top\" width=\"268\">You will need to change permissions from read to read\/ write.<p><\/p>\n<p>Click on the&nbsp; PERMISSIONS TAB and make sure it has read\/write permissions.<\/p><\/td>\n<td valign=\"top\" width=\"270\"><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image_thumb2.png\" alt=\"image\" width=\"244\" height=\"103\" border=\"0\"><\/a>&nbsp; <a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image_thumb3.png\" alt=\"image\" width=\"244\" height=\"92\" border=\"0\"><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"62\"><em>step 4<\/em>.<\/td>\n<td valign=\"top\" width=\"268\">Go To API keys section and click generate ACCESS TOKEN.<\/td>\n<td valign=\"top\" width=\"270\"><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image4.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image_thumb4.png\" alt=\"image\" width=\"244\" height=\"207\" border=\"0\"><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"62\">Step 5.<\/td>\n<td valign=\"top\" width=\"268\">Now that you have all for tokens, you you can now go into the administration screen&nbsp; and copy and paste into the Twitter channel.<\/td>\n<td valign=\"top\" width=\"273\"><a href=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image5.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/jorgep.com\/blog\/wp-content\/uploads\/2015\/01\/image_thumb5.png\" alt=\"image\" width=\"244\" height=\"212\" border=\"0\"><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>In order to allow an application to post entries on your behalf to a Twitter account you will need to get the appropriate credentials.&nbsp; You will need to have access to the desired Twitter account.&nbsp;&nbsp;&nbsp; The following four tokens \/ credentials are needed: &#8216;oauth_access_token&#8217; =&gt; Access token &#8216;oauth_access_token_secret&#8217; =&gt; Access token secret &#8216;consumer_key&#8217; =&gt; API&#8230;<\/p>\n","protected":false},"author":2,"featured_media":461826,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ngg_post_thumbnail":0,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[446],"tags":[602,171,599],"class_list":["post-366173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-tools-resources","tag-31posts","tag-getting-started","tag-setup"],"taxonomy_info":{"category":[{"value":446,"label":"Tips, Tools &amp; Resources"}],"post_tag":[{"value":602,"label":"31posts"},{"value":171,"label":"Getting Started"},{"value":599,"label":"setup"}]},"featured_image_src_large":["https:\/\/jorgep.com\/blog\/wp-content\/uploads\/jorgep-BlogPostGeneric.jpg",1024,512,false],"author_info":{"display_name":"Jorge Pereira","author_link":"https:\/\/jorgep.com\/blog\/author\/jorge\/"},"comment_info":0,"category_info":[{"term_id":446,"name":"Tips, Tools &amp; Resources","slug":"tips-tools-resources","term_group":0,"term_taxonomy_id":456,"taxonomy":"category","description":"","parent":0,"count":83,"filter":"raw","cat_ID":446,"category_count":83,"category_description":"","cat_name":"Tips, Tools &amp; Resources","category_nicename":"tips-tools-resources","category_parent":0}],"tag_info":[{"term_id":602,"name":"31posts","slug":"31posts","term_group":0,"term_taxonomy_id":612,"taxonomy":"post_tag","description":"","parent":0,"count":33,"filter":"raw"},{"term_id":171,"name":"Getting Started","slug":"getting-started","term_group":0,"term_taxonomy_id":184,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"},{"term_id":599,"name":"setup","slug":"setup","term_group":0,"term_taxonomy_id":609,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/posts\/366173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/comments?post=366173"}],"version-history":[{"count":0,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/posts\/366173\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/media\/461826"}],"wp:attachment":[{"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/media?parent=366173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/categories?post=366173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jorgep.com\/blog\/wp-json\/wp\/v2\/tags?post=366173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}