Skip to content

keepwa1king/postype_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostypeRails

PostypeRails can help you automate when you post in your Postype Blog.


Installation

gem 'postype_rails', '~> 0.1.0'

How To Find Blog ID & Cookie

Postype Blog ID

  • When you enter the screen where you write a new post, That screen's url show your blog_id (The yellow part of the picture)
How To Find Your Postype Blog IDd

Postype Cookie

  • I use Chrome, and I'll explain it to you based on that.
  1. Open The DevTool And Let's Go to Network Tab
Let's open Network Tab
  1. Then Select "Doc"
Select Doc
  1. Without closing the DevTool, ReEnter The Screen where you write a new post
Click This
  1. Click the First Request, You Can Find The Cookie In Request Headers (The yellow part of the picture)
You Can Find Your Cookie

Usage

require 'postype_rails'

PostypeRails.upload("postype cookie", "blog id", "my post title", "<p>my post content</p>")

You should Pass Arguments.

Arguments:

  • cookie: (String)
  • blog_id: (String)
  • title: (String)
  • content: (String) (content should be html string)

About

Upload post in postype

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published