Skip to content
This repository has been archived by the owner on Jul 1, 2019. It is now read-only.

Commit

Permalink
changing readme to use lowercase so there isnt confusion between name…
Browse files Browse the repository at this point in the history
…s and slugs. The example code wasnt working due to this confusion
  • Loading branch information
mriley committed Aug 14, 2012
1 parent 891cf9b commit b744117
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -8,11 +8,11 @@ A PHP client for [Swiftype](http://swiftype.com), a search and autocomplete API

$client = new \Swiftype\SwiftypeClient('your@email.com', 'password', 'api_key');

print_r($client->create_engine('Library'));
print_r($client->create_engine('library'));

print_r($client->create_document_type('Library', 'Books'));
print_r($client->create_document_type('library', 'books'));

print_r($client->create_document('Library', 'Books', array(
print_r($client->create_document('library', 'books', array(
'external_id' => '1',
'fields' => array(
array(
Expand All @@ -28,7 +28,7 @@ print_r($client->create_document('Library', 'Books', array(
)
)));

print_r($client->documents('Library', 'Books'));</pre>
print_r($client->documents('library', 'books'));</pre>

###Documentation

Expand All @@ -52,7 +52,7 @@ Returns a specific engine.
####create_engine(engine_id String)
Creates a new engine

`$client->create_engine('Library');`
`$client->create_engine('library');`

####destroy_engine(engine_id String)
Destroys an engine
Expand All @@ -72,7 +72,7 @@ Fetches a specific document_type.
####create_document_type(engine_id String, document_type_id String)
Creates a document type for a specific engine.

`$client->create_document_type('library', 'Books');`
`$client->create_document_type('library', 'books');`

####destroy_document_type(engine_id String, document_type_id String)
Destroys a document type.
Expand Down

0 comments on commit b744117

Please sign in to comment.