Skip to content

Instantly share code, notes, and snippets.

require 'oauth'
request = OAuth::RequestProxy.proxy(
"method" => 'GET',
"uri" => 'https://betastream.twitter.com/2b/user.json',
"parameters" => {
"oauth_consumer_key" => "******************",
"oauth_token" => "***-******************",
"oauth_nonce" => OAuth::Helper.generate_key,
"oauth_timestamp" => OAuth::Helper.generate_timestamp,
#include <iostream>
using namespace std;
namespace vtstring {
// 文字列を表す可変引数テンプレート
template <char... a> struct vtstring;
template <char a, char... b>
struct vtstring<a, b...>
{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <oauth.h>
int main(int argc, char **argv)
{
char *consumer_key = "*********************";
char *consumer_secret = "******************************************";
char *access_token = "********-*****************************************";