func (r *WorkerService) Create(ctx context.Context, data url.Values) (*Worker, error) {
	worker := new(Worker)
	err := r.client.CreateResource(ctx, "Workspaces/"+r.workspaceSid+"/"+WorkersPathPart, data, worker)
	return worker, err
}
Create creates a new Worker.

For a list of valid parameters see
https://www.twilio.com/docs/taskrouter/api/workers#action-create.
package twilio
import (
	"context"
	"net/url"
)
const WorkersPathPart = "Workers"
type WorkerService struct {
	client       *Client
	workspaceSid string
}
type Worker struct {
	Sid          string `json:"sid"`
	AccountSid   string `json:"account_sid"`
	FriendlyName string `json:"friendly_name"`
	Attributes   string     `json:"attributes"`
	ActivityName string     `json:"activity_name"`
	ActivitySid  string     `json:"activity_sid"`
	Available    bool       `json:"available"`
	DateCreated  TwilioTime `json:"date_created"`
	DateUpdated  TwilioTime `json:"date_updated"`
	URL          string     `json:"url"`
	WorkspaceSid string     `json:"workspace_sid"`
}
type WorkerPage struct {
	Page
	Workers []*Worker `json:"workers"`
}
func (r *WorkerService) Get(ctx context.Context, sid string) (*Worker, error) {
	worker := new(Worker)
	err := r.client.GetResource(ctx, "Workspaces/"+r.workspaceSid+"/"+WorkersPathPart, sid, worker)
	return worker, err
}