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_iddomain_iduser_idgroup_idnametokenshare_urliconprimary_coloruser_lockstatus
111nullTwitter{ApiToken}https://...#{hex value}1enabled
211nulllinkedIN{ApiToken}https://...fb#{hex value}nulldisabled
311null{ApiToken}https://...nullenabled
411null{ApiToken}https://...nullenabled

Manage Social accounts

Post, edit and review the things you post on social media, using your account(s).

Twitter

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

Twitter