forked from MEDIGO/go-zendesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add inline doc about credentials so they appear in godoc - Replace the doc file by a Example file that should run on godocs (https://blog.golang.org/examples)
- Loading branch information
Simon Alfassa
committed
Aug 30, 2017
1 parent
6c50253
commit dae6156
Showing
4 changed files
with
31 additions
and
25 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package zendesk_test | ||
|
||
import ( | ||
"log" | ||
|
||
"github.com/MEDIGO/go-zendesk/zendesk" | ||
) | ||
|
||
func Example() { | ||
client, err := zendesk.NewClient("domain", "username", "password") | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
ticket, err := client.ShowTicket(1) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
log.Printf("Requester ID is: %d", *ticket.RequesterID) | ||
} |