The EuroCMS Socials Module
With this module you can manage your social media accounts. This will also give you the option to add Socials buttons to your website.
And will also allow you to automatically post to Social website automatically.
db structure
| social_id | domain_id | user_id | group_id | name | token | share_url | icon | primary_color | user_lock | status |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | null | {ApiToken} | https://... | #{hex value} | 1 | enabled | ||
| 2 | 1 | 1 | null | {ApiToken} | https://... | #{hex value} | null | disabled | ||
| 3 | 1 | 1 | null | {ApiToken} | https://... | null | enabled | |||
| 4 | 1 | 1 | null | {ApiToken} | https://... | null | enabled |
Manage Social accounts
Post, edit and review the things you post on social media, using your account(s).
Example curl code:
curl -XPOST
--url 'https://api.twitter.com/1.1/statuses/update.json?status=hello'
--header 'authorization: OAuth
oauth_consumer_key="oauth_customer_key",
oauth_nonce="generated_oauth_nonce",
oauth_signature="generated_oauth_signature",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="generated_timestamp",
oauth_token="oauth_token",
oauth_version="1.0"'
PHP Example
The below PHP code is a work in progress
The following is how I want to structure it
ns Twitter
class lookup:
-
function Tweet
-
function User
-
function Spaces
-
function blocks
-
function list
class Tweet:
<?php
namespace Twitter {
const oauth_consumer_key = '';
const oauth_nonce = '';
const oauth_signature = '';
const oauth_signature_method = '';
const oauth_timestamp = '';
const oauth_token = '';
const oauth_version = '';
const base_url = 'https://api.twitter.com/2';
class TweetLookup {
function __construct() {
}
function Single() {
}
function SingleUserContext() {
}
function Multiple() {
}
}
class UserLookup {
function __construct() {
}
function UserByID() {
}
function UserSByID() {
}
function UserByUsername() {
}
function UsersByUsername() {
}
function AuthenticaedUserLookup() {
}
}
class likes {
function __construct() {
}
function LikeATweet() {
}
function LikedTweets() {
}
function LikingUsers() {
}
function UnlikeATweet() {
}
}
}
Links
List of links per social media account