Skip to content

Commit fa9d3f8

Browse files
authored
Merge pull request #4698 from segmentio/quick-streams-fixes
Fix Build a Stream Typos
2 parents bc22194 + bf7c9d9 commit fa9d3f8

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

src/partners/streams.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,52 @@ title: Build a Stream
33
---
44

55
> info ""
6-
> The Developer Center is currently not accepting new components. Segment is committed to redeveloping the Developer Center and a new version will be launched in the future. Include [your information here](https://airtable.com/shrj3BkHMhdeaPYWt){:target="_blank"} and we'll contact you once _Streams_ are made available!
6+
> The Developer Center is currently not accepting new components. Segment is committed to redeveloping the Developer Center and a new version will be launched in the future. Include [your information here](https://airtable.com/shrj3BkHMhdeaPYWt){:target="_blank"} and we'll contact you once _Streams_ are made available.
77
88

9-
Streams enable you to send data to mutual customers from your web services in realtime.
9+
Streams enable you to send data to mutual customers from your web services in real time.
1010

1111
# Building a Stream
1212

13-
Segment empowers companies of all sizes to use their customer data to grow their business. In addition to more than 180 analytics and marketing tools that receive data from Segment, there are a growing number of source partners — including Salesforce, Twilio, Stripe, Zendesk, and more — sending data into Segment for their customers to use in any destination. By creating a Segment data stream, you'll enable customers to use data from your tool wherever it's most useful to them.
13+
Segment empowers companies of all sizes to use their customer data to grow their business. In addition to more than 180 analytics and marketing tools that receive data from Segment, a growing number of source partners — including Salesforce, Twilio, Stripe, Zendesk, and more — send data into Segment for their customers to use in any destination. By creating a Segment data stream, you'll enable customers to use data from your tool wherever it's most useful to them.
1414

1515
# Understanding the integration
1616

17-
To complete the source set up flow, the customer will need to input the Segment write key for this source in your integrations settings UI. This will enable your tool to route customer data back to Segment correctly.
17+
To complete the source setup flow, the customer will need to input the Segment write key for this source in your integrations settings UI. This will enable your tool to route customer data back to Segment correctly.
1818

1919
Customers can find their write key in the source settings and regenerate it as needed.
2020

2121
![Screenshot of a Source's settings page, with the write key present.](images/s_8E933880F61B29168308B8A8203AE878319289A26E8E2054D0824C7A53E43DD4_1479162638952_file.png)
2222

2323
> warning ""
24-
> Segment working on an OAuth solution to reduce friction for customers. Partner Streams submitted through the developer center *will* be required to support this OAuth as it comes available.
24+
> Segment is working on an OAuth solution to reduce friction for customers. Partner Streams submitted through the developer center *will* be required to support this OAuth as it comes available.
2525
2626
## The Segment Spec
2727

28-
To learn about the semantics of the five supported API calls, and the semantic event names and properties Segment recognizes, read the Segment [Spec](/docs/connections/spec).
28+
To learn about the semantics of the five supported API calls, and the semantic event names and properties Segment recognizes, read the [Segment Spec](/docs/connections/spec).
2929

30-
The spec is a critical component of preserving semantics between sources and destinations. If you break the spec, you are breaking the promise of Segment, which is grounds for removal from the catalog.
30+
The Spec is a critical component of preserving semantics between sources and destinations. If you break the Spec, you are breaking the promise of Segment, which is grounds for removal from the catalog.
3131

3232
> info ""
3333
> If any events you send to Segment match, but do not adhere to, existing events from the Segment Spec (for example, sending "Purchase" instead of "Order Completed" or "install" instead of "Application Installed"), Segment will reject your application.
3434
3535

36-
If there is something unique about your tool that requires specific data points that are not included in the spec, [get in touch](https://segment.com/help/contact/){:target="_blank"}.
36+
If your tool requires specific data points not included in the Spec, [get in touch](https://segment.com/help/contact/){:target="_blank"}.
3737

3838
## Sending data
3939

40-
To send events to Segment you should post events directly to the [Segment HTTP API](/docs/connections/sources/catalog/libraries/server/http-api/#track). You may use any server-side Segment [library](/docs/connections/sources/catalog/) to do so. The HTTP API has a couple of basic requirements.
40+
To send events to Segment, you should post events directly to the [Segment HTTP API](/docs/connections/sources/catalog/libraries/server/http-api/#track). You may use any server-side Segment [library](/docs/connections/sources/catalog/) to do so. The HTTP API has a couple of basic requirements.
4141

4242
Beyond the Spec, there are a few additional requirements for partner Streams.
4343

4444
### `userId`
4545

46-
Each call sent to Segment must contain a `userId`. The `userId` is what allows Segment to identify each unique user. This value should be stored by your tool when you receive an event from Segment.
46+
Each call sent to Segment must contain a `userId`, which allows Segment to identify unique users. This value should be stored by your tool when you receive an event from Segment.
4747

48-
For example, you might receive an `identify` call with a `userId` and `traits` about that user. If that user is sent an email and opens that email, you would want to send an `Email Opened` event back to Segment with that same `userId` . The `userId` should be part of the call body as a top-level object.
48+
For example, you might receive an Identify call with a `userId` and `traits` about that user. If that user is sent an email and opens that email, you would want to send an `Email Opened` event back to Segment with that same `userId` . The `userId` should be part of the call body as a top-level object.
4949

5050
> info ""
51-
> For Customers, it's critical that the `userId` be consistent across all data flowing through Segment — this has significant implications for Segment billing (based on unique Monthly Tracked Users) and usefulness of data in integrations/warehouses. Passing back the `userId` value sent from Segment into your tool should be the default behavior of your track calls. If you're not a destination, make sure that you're using the customer's internal database ID, not your tool's ID.
51+
> For Customers, it's critical that the `userId` be consistent across all data flowing through Segment — this has significant implications for Segment billing (based on unique Monthly Tracked Users) and usefulness of data in integrations/warehouses. Passing back the `userId` value sent from Segment into your tool should be the default behavior of your Track calls. If you're not a destination, make sure that you're using the customer's internal database ID, not your tool's ID.
5252
5353
If you have your own unique identifier you use in your tool, Segment recommends passing that along as a context property in the event for QA purposes. For example:
5454

@@ -80,19 +80,20 @@ This should be part of the `context` top-level object and will look like:
8080

8181
### `writeKey`
8282

83-
Each call must contain a `writeKey`. Segment provides this `writeKey` to customers in the settings panel for each of their sources. As mentioned in the set up flow description above, customers will need to save their Segment write key in your UI in order authenticate calls being made by your tool.
83+
Each call must contain a `writeKey`. Segment provides this `writeKey` to customers in the settings panel for each of their sources. As mentioned in the setup flow description above, customers will need to save their Segment write key in your UI in order to authenticate calls being made by your tool.
8484

8585
The write key is required in the header of every call to identify the customer whose data Segment receives. See the [authentication section](/docs/connections/sources/catalog/libraries/server/http-api/#authentication) of the HTTP API docs for more detail. If you do not include a customer write key in the call header, Segment will reject track calls from your tool.
8686

8787
**Rate limits and batching**
88+
8889
There is no hard rate limit at which point Segment will drop your data. However, to avoid processing delays, Segment asks partners to send requests at a maximum rate of 50 requests per second.
8990

90-
If you want to batch requests to the HTTP endpoint, refer to the batching documentation [here](/docs/connections/sources/catalog/libraries/server/http-api/#import). The suggested maximum rate includes any batch requests.
91+
If you want to batch requests to the HTTP endpoint, refer to the [batching documentation](/docs/connections/sources/catalog/libraries/server/http-api/#import). The suggested maximum rate includes any batch requests.
9192

9293
## Regional Segment
93-
Segment offers customers the option to lead on data residency by providing regional infrastructure in both the Europe and the United States.
94+
Segment offers customers the option to lead on data residency by providing regional infrastructure in both Europe and the United States.
9495

95-
Segment recommends you enable the user to choose which Segment [endpoint](/docs/guides/regional-segment/#server-side-and-project-sources) to send data to for the given writeKey from your system.
96+
Segment recommends that you let users choose which Segment [endpoint](/docs/guides/regional-segment/#server-side-and-project-sources) to send data to for the given `writeKey` from your system.
9697

9798
# Process
9899

@@ -111,7 +112,7 @@ All three of these steps should be completed before you begin testing:
111112

112113
## Testing
113114

114-
1. If you don't have a test account up and running already, [create a free Segment account](https://segment.com/signup).
115+
1. If you don't have a test account up and running already, [create a free Segment account](https://segment.com/signup){:target="_blank"}.
115116
2. Set up a source depending on the kinds of events you need to test. For example, if your source sends mobile event data, you'll need to instrument a Segment mobile SDK into a demo app.
116117
3. Copy the Segment write key for this source into your integration settings and save.
117118
4. Take actions that generate the events your source should be sending. For example, if your source is sending email data to Segment, you should:

0 commit comments

Comments
 (0)