This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
resolve: `gatsby-source-twitter`, | |
options: { | |
credentials: { | |
consumer_key: "vfhzhNXXXXXXXXXXX", | |
consumer_secret: "EDY8Qcm1RZ2PXXXXXXXXXXXXX", | |
bearer_token: "AAAAAAAAAAAAAAAAAAAAACXXXXXX", | |
}, | |
queries: { | |
getPosts: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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([ |