Skip to content

Instantly share code, notes, and snippets.

Avatar

Phillip Lawniczak PhillJaySaw

View GitHub Profile
View indexPage-2.js
import React from "react"
import { graphql, StaticQuery} from 'gatsby';
import Layout from "../components/layout"
import SEO from "../components/seo"
import Heart from "../images/like.png"
const IndexPage = () => (
<Layout>
View indexPage.js
import React from "react"
import { graphql, StaticQuery } from 'gatsby';
import Layout from "../components/layout"
import SEO from "../components/seo"
const IndexPage = () => (
<Layout>
<SEO title="Home" />
<StaticQuery
View gatsby-config-2.js
{
resolve: `gatsby-source-twitter`,
options: {
credentials: {
consumer_key: "vfhzhNXXXXXXXXXXX",
consumer_secret: "EDY8Qcm1RZ2PXXXXXXXXXXXXX",
bearer_token: "AAAAAAAAAAAAAAAAAAAAACXXXXXX",
},
queries: {
getPosts: {
View gatsby-config.js
{
resolve: `gatsby-source-twitter`,
options: {
credentials: {
consumer_key: "INSERT_HERE_YOUR_CONSUMER_KEY",
consumer_secret: "INSERT_HERE_YOUR_CONSUMER_SECRET",
bearer_token: "INSERT_HERE_YOUR_BEARER_TOKEN",
},
queries: {
nameofthequery: {
View AuthCest.java
class AuthCest
{
// tests
public function validCredentials(ApiTester $I)
{
$I->wantTo('Generate access token');
$email = uniqid('email-') . '@gmail.com';
$password = uniqid('password-');
// create user in database
$userId = $I->createUser([
You can’t perform that action at this time.