المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ربط twitter api مع whmcs وحل مشكلة Invalid details not saved



Rise Company
27-07-2018, 11:23
ربط twitter api مع whmcs وحل مشكلة Invalid details not saved
راجع اولا
تسجيل الدخول من خلال تويتر Twitter API واستخدام App ID & Secret (https://www.rise.company/forum/threads/30100-%D8%AA%D8%B3%D8%AC%D9%8A%D9%84-%D8%A7%D9%84%D8%AF%D8%AE%D9%88%D9%84-%D9%85%D9%86-%D8%AE%D9%84%D8%A7%D9%84-%D8%AA%D9%88%D9%8A%D8%AA%D8%B1-Twitter-API-%D9%88%D8%A7%D8%B3%D8%AA%D8%AE%D8%AF%D8%A7%D9%85-App-ID-Secret)

Create a Twitter App and Retrieve API Credentials

اذهب الى هذا الرابط https://apps.twitter.com (https://apps.twitter.com/)

ثم فى الاعلى على اليمين اضغط على Create New App

https://www.rise.company/forum/images/imported/2018/07/8.png
4. Enter a Name, Description and Website URL for your App.
You must also enter a valid URL in the Callback URL fields. The URL you enter here is not used, but the valid URL of the callback file must be defined to enable WHMCS to utilise callbacks. Because there are three possible callback URLs depending upon the Friendly URLs feature setting, we suggest adding all:


هام جدا هذه اهم نقطة لكى يعمل على whmcs بشكل سليم



http://demo.whmcs.com/whmcs/index.php/auth/provider/twitter_oauth/callback
http:///demo.whmcs.com/whmcs/auth/provider/twitter_oauth/callback

Replace http://demo.whmcs.com/whmcs/ with the actual URL of your WHMCS installation


https://www.rise.company/forum/images/imported/2018/07/9.png
5. If you do not yet have a phone number defined inside your Twitter account, you will see the following error upon submitting. To create an App, Twitter requires that you have a valid phone number registered in your account with them. You must do this before continuing.
https://www.rise.company/forum/images/imported/2018/07/10.png
6. After submitting the App Creation form, you should see a success confirmation page that looks as follows.
https://www.rise.company/forum/images/imported/2018/07/11.png
7. Select the Settings tab. In the Application Details section, ensure that the Enable Callback Locking option is disabled.
https://www.rise.company/forum/images/imported/2018/07/12.png
8. Select the Permissions tab. WHMCS only requires Read permissions so you can change the default Access permission level to Read only. Then hit Update Settings
https://www.rise.company/forum/images/imported/2018/07/13.png
9. Now select the Keys and Access Tokens tab. Your API Key and Secret will then be displayed. These are the values you will need to activate Twitter Sign In within WHMCS so store these in a safe place.
https://www.rise.company/forum/images/imported/2018/07/14.png
You can now proceed to Activate Twitter Sign In within WHMCS.
Activate Twitter Sign In within WHMCS



Login to the WHMCS Admin Area
Navigate to Setup > Sign-In Integrations
Select Activate under the Twitter heading
Enter your Twitter API Key and API Secret where requested
Click Save & Activate

WHMCS will attempt to validate and test the details you have entered. If the API Key and Secret are valid and successfully authenticate with the Twitter API, the values will be saved and the modal will close.
Congratulations! Twitter Sign In is now enabled.

Rise Company
07-11-2020, 03:12
https://docs.whmcs.com/Configuring_Sign-In_using_Twitter