Twitter developer account team

My name is Top Creation Co., Ltd. Matsuda.

At the request of Hokkaido Cultural Broadcasting (uhb), I tweeted to the requester’s handle
using Twitter API (v1.1). I am trying to be able to do it.
The requester handle is “@uhbnews_uhb”.

When I applied for a developer account for the requester’s handle, it was “Fri, 30 Apr 2021 21:59 +0900” Approved.

However, in “Hokkaido News UHB” which is Standalone Apps for v1.1 access in the above handle
The API Key and API Secret of “Consumer Keys” have not been issued.
Please refer to the URL below and check “Consumer Keys”.

◇ URL
https://developer.twitter.com/en/portal/apps/ (AppId of @uhbnews_uhb) / keys

You can issue the API Key and API Secret of “Consumer Keys” so that you can tweet to the above handle.
Shall we?

Just in case, press the “Regenerate” button of “Consumer Keys” by yourself and API Key of “Consumer Keys”,
Issue API Secret, API Key, API Secret and “Access Token and Secret” already issued
I tried to get the latest 5 tweets in the program using Access Token and Access Token Secret.
As a result, the tweets of the above handle could not be acquired, and the tweets of other handles were acquired.
In addition, since no error has occurred, it seems that the authentication itself by Twitter API is possible.
Also, after paying out “Consumer Keys”, even if you refer to the above URL, the wording indicating that you paid out is displayed.
not here.
Originally, I thought that the date of payment would be displayed like Access Token and Secret.
Please also check and respond if necessary.

that’s all, thank you very much.

Twitter developer account team

We apologize for the inconvenience, but please answer the above.

that’s all, thank you very much.

“Consumer key” is exactly “API Key” and
“Consumer Secret” is “API Secret”

So anywhere that asks you for Consumer Key & Consumer Secret, provide the API Key & API Secret.

Hope that clears it up!

Mr.IgorBrigadir

Thank you for your comment.

Of the “Consumer Keys” I paid out by pressing the “Regenerate” button of the “Consumer Keys”
API Key and API Secret are as follows.

◇ “Consumer Keys” paid out
API Key : N…t
API Secret: Q…8

Sorry for your inconvenience, but can you reply after the above confirmation is completed?
After confirmation is complete, we would like to reissue “Consumer Keys”.

that’s all, thank you very much.

Yes, those are the keys but please regenerate them again, and do not share them like this, you should treat those as passwords: Authentication best practices | Docs | Twitter Developer Platform

Mr. Igor Brigadir

Thank you for your comment.
The consumer key has been reissued.

Then, the comment I received last time

> So anywhere that asks you for Consumer Key & Consumer Secret, provide the API Key & API Secret.

I don’t understand the meaning of, so I’m sorry, can you tell me?

This is a developer account application and approval, so “Consumer Keys” of “Hokkaido News UHB”
I knew that API Key and API Secret would be issued automatically.
However, as a result, “Consumer Keys” was not issued.

After that, even if “Consumer Keys” was reissued, “Consumer Keys” was issued to the URL below.
The wording indicating “” is not displayed, and the above account is used with the Twitter API using the “Consumer Keys” issued.
I tried to get Twitter information, but I couldn’t.

Therefore, in “Hokkaido News UHB”, “Consumer Keys” may not be paid out correctly.
I doubt that, so I would like you to investigate.

◇ URL
https://developer.twitter.com/en/portal/apps/ (AppId of @uhbnews_uhb) / keys

If you have any discrepancies in this recognition, please point it out.

that’s all, thank you very much.

Sure - what I meant was “Consumer Key” Is “API key”. It’s a different name for the same piece of information. “Consumer Secret”, is also called “API Secret”

Mr. Igor Brigadir

Thank you for your comment.

In communication with Twitter using Twitter API, I paid out “Consumer Keys” API Key, API Secret,
We have set 4 access tokens and access token secrets for “Access Token”.
However, the tweet of “@uhbnews_uhb” has not been acquired.
Therefore, I would like you to investigate the status of “Consumer Keys” of “@uhbnews_uhb”.

In addition, since the test program (exec_twitter_sample.php) is described at the end of the text.
I would like you to check it by all means.

In addition, the API Key and API Secret of “Consumer Keys” are not displayed at the following URL.
Even if you “Regenerate”, it is in the same state.

  • Please check the attached image.

> ◇ URL
https://developer.twitter.com/en/portal/apps/ (AppId of @uhbnews_uhb) / keys

On this screen, when the developer account application is approved, the API Key of “Consumer Keys”,
We are aware that the API Secret will be issued and displayed.

I will tell you again, but if my recognition is correct, please do. Of “@uhbnews_uhb
Please investigate the status of “Consumer Keys”.
If you have any reason why you cannot carry out the survey, please answer. We will contact you with the necessary information.

that’s all, thank you very much.

exec_twitter_sample.php

<?php require_once("twitteroauth-master/autoload.php"); require_once("twitteroauth-master/src/TwitterOAuth.php"); use Abraham\TwitterOAuth\TwitterOAuth; // API key $tw_consumer_key = (Issued consumer key); // API secret key $tw_consumer_secret = "(Issued consumer secret)"; // access_token $tw_access_token = "(Issued access token)"; // access_token secret $tw_access_token_secret = "(Issued access token secret)"; function get_tw_object() { global $tw_consumer_key, $tw_consumer_secret, $tw_access_token, $tw_access_token_secret, $proxy; $obj = null; $obj = new TwitterOAuth($tw_consumer_key, $tw_consumer_secret, $tw_access_token, $tw_access_token_secret); return $obj; } $tw = get_tw_object(); if($tw == null){ throw new Exception('Twitter error: OAuth object creation failed '); } // Timeline $res = $tw->get('statuses/home_timeline', array('count' => 5)); var_dump($res); ?>

On the dashboard, there should be a way to copy paste the keys, in case they do not show up in the pop-up. If you don’t see anything at all maybe try a different browser like Chrome.

When regenerating Consumer keys, you also have to regenerate the Access tokens too. It may take a few minutes for them to be active.

I don’t really know php enough to tell if something is wrong there, but the library you’re using is good.

Hope that helps!

The API Key (Consumer Key) and secret are only shown once, when they are first generated. You should store them safely in a password manager. If you do not save them when they are first generated, you must regenerate them. This was changed in January → Ability to view existing consumer API keys being removed from your developer dashboard

Mr. Igor Brigadir, Mr. andypiper

Sorry for the late reply.
Thank you for your comment.

I will check what you have taught me and try to implement it.
If you have any questions, we will contact you again.

that’s all, thank you very much.

Thank you, Igor Brigadir.

I tried to regenerate both the consumer key and the access token.
I was able to get the tweet I expected.
In the future, after regenerating the consumer key, be sure to regenerate the access token.
I will generate it.

Thank you, andypiper.

To enhance security by referring to the information provided
I’m aware that the ability to display consumer keys has been removed.

My question has been resolved.

that’s all, thank you very much.

2 Likes