func (s *PagesService) Update(ctx context.Context, id, body string) (*Page, error) {
	var page Page
	params := url.Values{}
	params.Set("access_token", s.client.config.Token)
	params.Set("page_id", id)
	params.Set("body", body)
	err := s.client.newRequest(ctx, http.MethodPost, "/_api/pages.update", params, &page)
	if err != nil {
		return nil, err
	}
	return &page, nil
}
Update updates the page content. A page_id is necessary to know which
page should be updated.
package crowi
import (
	"fmt"
	"net/http"
	"net/url"
	"time"
	"golang.org/x/net/context"
)
type PagesService service
func (s *PagesService) Create(ctx context.Context, path, body string) (*Page, error) {
	var page Page
	params := url.Values{}
	params.Set("access_token", s.client.config.Token)
	params.Set("path", path)
	params.Set("body", body)
	err := s.client.newRequest(ctx, http.MethodPost, "/_api/pages.create", params, &page)
	if err != nil {
		return nil, err
	}
	return &page, nil
}